From 7e131df4f7a06dada8883cbc26fe935f1eb42dc4 Mon Sep 17 00:00:00 2001 From: MyonKeminta Date: Tue, 7 Jan 2025 16:22:40 +0800 Subject: [PATCH 1/2] Add new GC API Signed-off-by: MyonKeminta --- pkg/pdpb/pdpb.pb.go | 27685 +++++++++++++++++++++++------------------- proto/pdpb.proto | 80 +- scripts/proto.lock | 205 +- 3 files changed, 15378 insertions(+), 12592 deletions(-) diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index fac1cee37..0cfc9db34 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -5580,8 +5580,12 @@ func (m *GetGCSafePointResponse) GetSafePoint() uint64 { } type UpdateGCSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - SafePoint uint64 `protobuf:"varint,2,opt,name=safe_point,json=safePoint,proto3" json:"safe_point,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Target uint64 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` + // The UpdateGCSafePoint API will be in the set of both legacy API and new API, but its behavior will be the same so we don't need to + // avoid the collision on the method name. When it's used as a member of the new API set, the keyspace_id field can be used to specify + // a keyspace. + KeyspaceId uint32 `protobuf:"varint,3,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` } func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointRequest{} } @@ -5624,16 +5628,23 @@ func (m *UpdateGCSafePointRequest) GetHeader() *RequestHeader { return nil } -func (m *UpdateGCSafePointRequest) GetSafePoint() uint64 { +func (m *UpdateGCSafePointRequest) GetTarget() uint64 { if m != nil { - return m.SafePoint + return m.Target + } + return 0 +} + +func (m *UpdateGCSafePointRequest) GetKeyspaceId() uint32 { + if m != nil { + return m.KeyspaceId } return 0 } type UpdateGCSafePointResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - NewSafePoint uint64 `protobuf:"varint,2,opt,name=new_safe_point,json=newSafePoint,proto3" json:"new_safe_point,omitempty"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + NewGcSafePoint uint64 `protobuf:"varint,2,opt,name=new_gc_safe_point,json=newGcSafePoint,proto3" json:"new_gc_safe_point,omitempty"` } func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResponse{} } @@ -5676,9 +5687,9 @@ func (m *UpdateGCSafePointResponse) GetHeader() *ResponseHeader { return nil } -func (m *UpdateGCSafePointResponse) GetNewSafePoint() uint64 { +func (m *UpdateGCSafePointResponse) GetNewGcSafePoint() uint64 { if m != nil { - return m.NewSafePoint + return m.NewGcSafePoint } return 0 } @@ -6513,27 +6524,24 @@ func (m *GetAllGCSafePointV2Response) GetRevision() int64 { return 0 } -type RegionStat struct { - // Bytes read/written during this period. - BytesWritten uint64 `protobuf:"varint,1,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"` - BytesRead uint64 `protobuf:"varint,2,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"` - // Keys read/written during this period. - KeysWritten uint64 `protobuf:"varint,3,opt,name=keys_written,json=keysWritten,proto3" json:"keys_written,omitempty"` - KeysRead uint64 `protobuf:"varint,4,opt,name=keys_read,json=keysRead,proto3" json:"keys_read,omitempty"` +type UpdateTxnSafePointRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + Target uint64 `protobuf:"varint,3,opt,name=target,proto3" json:"target,omitempty"` } -func (m *RegionStat) Reset() { *m = RegionStat{} } -func (m *RegionStat) String() string { return proto.CompactTextString(m) } -func (*RegionStat) ProtoMessage() {} -func (*RegionStat) Descriptor() ([]byte, []int) { +func (m *UpdateTxnSafePointRequest) Reset() { *m = UpdateTxnSafePointRequest{} } +func (m *UpdateTxnSafePointRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateTxnSafePointRequest) ProtoMessage() {} +func (*UpdateTxnSafePointRequest) Descriptor() ([]byte, []int) { return fileDescriptor_78b27e6f04f44c6e, []int{99} } -func (m *RegionStat) XXX_Unmarshal(b []byte) error { +func (m *UpdateTxnSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RegionStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *UpdateTxnSafePointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RegionStat.Marshal(b, m, deterministic) + return xxx_messageInfo_UpdateTxnSafePointRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6543,66 +6551,56 @@ func (m *RegionStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *RegionStat) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionStat.Merge(m, src) +func (m *UpdateTxnSafePointRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateTxnSafePointRequest.Merge(m, src) } -func (m *RegionStat) XXX_Size() int { +func (m *UpdateTxnSafePointRequest) XXX_Size() int { return m.Size() } -func (m *RegionStat) XXX_DiscardUnknown() { - xxx_messageInfo_RegionStat.DiscardUnknown(m) +func (m *UpdateTxnSafePointRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateTxnSafePointRequest.DiscardUnknown(m) } -var xxx_messageInfo_RegionStat proto.InternalMessageInfo - -func (m *RegionStat) GetBytesWritten() uint64 { - if m != nil { - return m.BytesWritten - } - return 0 -} +var xxx_messageInfo_UpdateTxnSafePointRequest proto.InternalMessageInfo -func (m *RegionStat) GetBytesRead() uint64 { +func (m *UpdateTxnSafePointRequest) GetHeader() *RequestHeader { if m != nil { - return m.BytesRead + return m.Header } - return 0 + return nil } -func (m *RegionStat) GetKeysWritten() uint64 { +func (m *UpdateTxnSafePointRequest) GetKeyspaceId() uint32 { if m != nil { - return m.KeysWritten + return m.KeyspaceId } return 0 } -func (m *RegionStat) GetKeysRead() uint64 { +func (m *UpdateTxnSafePointRequest) GetTarget() uint64 { if m != nil { - return m.KeysRead + return m.Target } return 0 } -type SyncRegionRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"` - // the follower PD will use the start index to locate historical changes - // that require synchronization. - StartIndex uint64 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` +type UpdateTxnSafePointResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + NewTxnSafePoint uint64 `protobuf:"varint,2,opt,name=new_txn_safe_point,json=newTxnSafePoint,proto3" json:"new_txn_safe_point,omitempty"` } -func (m *SyncRegionRequest) Reset() { *m = SyncRegionRequest{} } -func (m *SyncRegionRequest) String() string { return proto.CompactTextString(m) } -func (*SyncRegionRequest) ProtoMessage() {} -func (*SyncRegionRequest) Descriptor() ([]byte, []int) { +func (m *UpdateTxnSafePointResponse) Reset() { *m = UpdateTxnSafePointResponse{} } +func (m *UpdateTxnSafePointResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateTxnSafePointResponse) ProtoMessage() {} +func (*UpdateTxnSafePointResponse) Descriptor() ([]byte, []int) { return fileDescriptor_78b27e6f04f44c6e, []int{100} } -func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { +func (m *UpdateTxnSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SyncRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *UpdateTxnSafePointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SyncRegionRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_UpdateTxnSafePointResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6612,55 +6610,52 @@ func (m *SyncRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *SyncRegionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncRegionRequest.Merge(m, src) +func (m *UpdateTxnSafePointResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateTxnSafePointResponse.Merge(m, src) } -func (m *SyncRegionRequest) XXX_Size() int { +func (m *UpdateTxnSafePointResponse) XXX_Size() int { return m.Size() } -func (m *SyncRegionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SyncRegionRequest.DiscardUnknown(m) +func (m *UpdateTxnSafePointResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateTxnSafePointResponse.DiscardUnknown(m) } -var xxx_messageInfo_SyncRegionRequest proto.InternalMessageInfo +var xxx_messageInfo_UpdateTxnSafePointResponse proto.InternalMessageInfo -func (m *SyncRegionRequest) GetHeader() *RequestHeader { +func (m *UpdateTxnSafePointResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *SyncRegionRequest) GetMember() *Member { - if m != nil { - return m.Member - } - return nil -} - -func (m *SyncRegionRequest) GetStartIndex() uint64 { +func (m *UpdateTxnSafePointResponse) GetNewTxnSafePoint() uint64 { if m != nil { - return m.StartIndex + return m.NewTxnSafePoint } return 0 } -type PeersStats struct { - Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` +type SetGCBarrierRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + BarrierId string `protobuf:"bytes,3,opt,name=barrier_id,json=barrierId,proto3" json:"barrier_id,omitempty"` + BarrierTs uint64 `protobuf:"varint,4,opt,name=barrier_ts,json=barrierTs,proto3" json:"barrier_ts,omitempty"` + TtlSeconds int64 `protobuf:"varint,5,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` } -func (m *PeersStats) Reset() { *m = PeersStats{} } -func (m *PeersStats) String() string { return proto.CompactTextString(m) } -func (*PeersStats) ProtoMessage() {} -func (*PeersStats) Descriptor() ([]byte, []int) { +func (m *SetGCBarrierRequest) Reset() { *m = SetGCBarrierRequest{} } +func (m *SetGCBarrierRequest) String() string { return proto.CompactTextString(m) } +func (*SetGCBarrierRequest) ProtoMessage() {} +func (*SetGCBarrierRequest) Descriptor() ([]byte, []int) { return fileDescriptor_78b27e6f04f44c6e, []int{101} } -func (m *PeersStats) XXX_Unmarshal(b []byte) error { +func (m *SetGCBarrierRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PeersStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SetGCBarrierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PeersStats.Marshal(b, m, deterministic) + return xxx_messageInfo_SetGCBarrierRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6670,41 +6665,71 @@ func (m *PeersStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *PeersStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeersStats.Merge(m, src) +func (m *SetGCBarrierRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetGCBarrierRequest.Merge(m, src) } -func (m *PeersStats) XXX_Size() int { +func (m *SetGCBarrierRequest) XXX_Size() int { return m.Size() } -func (m *PeersStats) XXX_DiscardUnknown() { - xxx_messageInfo_PeersStats.DiscardUnknown(m) +func (m *SetGCBarrierRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetGCBarrierRequest.DiscardUnknown(m) } -var xxx_messageInfo_PeersStats proto.InternalMessageInfo +var xxx_messageInfo_SetGCBarrierRequest proto.InternalMessageInfo -func (m *PeersStats) GetPeers() []*PeerStats { +func (m *SetGCBarrierRequest) GetHeader() *RequestHeader { if m != nil { - return m.Peers + return m.Header } return nil } -type Peers struct { - Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` +func (m *SetGCBarrierRequest) GetKeyspaceId() uint32 { + if m != nil { + return m.KeyspaceId + } + return 0 } -func (m *Peers) Reset() { *m = Peers{} } -func (m *Peers) String() string { return proto.CompactTextString(m) } -func (*Peers) ProtoMessage() {} -func (*Peers) Descriptor() ([]byte, []int) { +func (m *SetGCBarrierRequest) GetBarrierId() string { + if m != nil { + return m.BarrierId + } + return "" +} + +func (m *SetGCBarrierRequest) GetBarrierTs() uint64 { + if m != nil { + return m.BarrierTs + } + return 0 +} + +func (m *SetGCBarrierRequest) GetTtlSeconds() int64 { + if m != nil { + return m.TtlSeconds + } + return 0 +} + +type GCBarrierInfo struct { + BarrierId string `protobuf:"bytes,1,opt,name=barrier_id,json=barrierId,proto3" json:"barrier_id,omitempty"` + BarrierTs uint64 `protobuf:"varint,2,opt,name=barrier_ts,json=barrierTs,proto3" json:"barrier_ts,omitempty"` + TtlSeconds int64 `protobuf:"varint,3,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` +} + +func (m *GCBarrierInfo) Reset() { *m = GCBarrierInfo{} } +func (m *GCBarrierInfo) String() string { return proto.CompactTextString(m) } +func (*GCBarrierInfo) ProtoMessage() {} +func (*GCBarrierInfo) Descriptor() ([]byte, []int) { return fileDescriptor_78b27e6f04f44c6e, []int{102} } -func (m *Peers) XXX_Unmarshal(b []byte) error { +func (m *GCBarrierInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GCBarrierInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_Peers.Marshal(b, m, deterministic) + return xxx_messageInfo_GCBarrierInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6714,51 +6739,56 @@ func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *Peers) XXX_Merge(src proto.Message) { - xxx_messageInfo_Peers.Merge(m, src) +func (m *GCBarrierInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCBarrierInfo.Merge(m, src) } -func (m *Peers) XXX_Size() int { +func (m *GCBarrierInfo) XXX_Size() int { return m.Size() } -func (m *Peers) XXX_DiscardUnknown() { - xxx_messageInfo_Peers.DiscardUnknown(m) +func (m *GCBarrierInfo) XXX_DiscardUnknown() { + xxx_messageInfo_GCBarrierInfo.DiscardUnknown(m) } -var xxx_messageInfo_Peers proto.InternalMessageInfo +var xxx_messageInfo_GCBarrierInfo proto.InternalMessageInfo -func (m *Peers) GetPeers() []*metapb.Peer { +func (m *GCBarrierInfo) GetBarrierId() string { if m != nil { - return m.Peers + return m.BarrierId } - return nil + return "" } -type SyncRegionResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - // the leader PD will send the repsonds include - // changed regions records and the index of the first record. - Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` - StartIndex uint64 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` - RegionStats []*RegionStat `protobuf:"bytes,4,rep,name=region_stats,json=regionStats,proto3" json:"region_stats,omitempty"` - RegionLeaders []*metapb.Peer `protobuf:"bytes,5,rep,name=region_leaders,json=regionLeaders,proto3" json:"region_leaders,omitempty"` - // the buckets informations without stats. - Buckets []*metapb.Buckets `protobuf:"bytes,6,rep,name=buckets,proto3" json:"buckets,omitempty"` - DownPeers []*PeersStats `protobuf:"bytes,16,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` - PendingPeers []*Peers `protobuf:"bytes,17,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` +func (m *GCBarrierInfo) GetBarrierTs() uint64 { + if m != nil { + return m.BarrierTs + } + return 0 } -func (m *SyncRegionResponse) Reset() { *m = SyncRegionResponse{} } -func (m *SyncRegionResponse) String() string { return proto.CompactTextString(m) } -func (*SyncRegionResponse) ProtoMessage() {} -func (*SyncRegionResponse) Descriptor() ([]byte, []int) { +func (m *GCBarrierInfo) GetTtlSeconds() int64 { + if m != nil { + return m.TtlSeconds + } + return 0 +} + +type SetGCBarrierResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + NewBarrierInfo *GCBarrierInfo `protobuf:"bytes,2,opt,name=new_barrier_info,json=newBarrierInfo,proto3" json:"new_barrier_info,omitempty"` +} + +func (m *SetGCBarrierResponse) Reset() { *m = SetGCBarrierResponse{} } +func (m *SetGCBarrierResponse) String() string { return proto.CompactTextString(m) } +func (*SetGCBarrierResponse) ProtoMessage() {} +func (*SetGCBarrierResponse) Descriptor() ([]byte, []int) { return fileDescriptor_78b27e6f04f44c6e, []int{103} } -func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { +func (m *SetGCBarrierResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SyncRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SetGCBarrierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SyncRegionResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_SetGCBarrierResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6768,91 +6798,109 @@ func (m *SyncRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *SyncRegionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncRegionResponse.Merge(m, src) +func (m *SetGCBarrierResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetGCBarrierResponse.Merge(m, src) } -func (m *SyncRegionResponse) XXX_Size() int { +func (m *SetGCBarrierResponse) XXX_Size() int { return m.Size() } -func (m *SyncRegionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncRegionResponse.DiscardUnknown(m) +func (m *SetGCBarrierResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetGCBarrierResponse.DiscardUnknown(m) } -var xxx_messageInfo_SyncRegionResponse proto.InternalMessageInfo +var xxx_messageInfo_SetGCBarrierResponse proto.InternalMessageInfo -func (m *SyncRegionResponse) GetHeader() *ResponseHeader { +func (m *SetGCBarrierResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *SyncRegionResponse) GetRegions() []*metapb.Region { +func (m *SetGCBarrierResponse) GetNewBarrierInfo() *GCBarrierInfo { if m != nil { - return m.Regions + return m.NewBarrierInfo } return nil } -func (m *SyncRegionResponse) GetStartIndex() uint64 { - if m != nil { - return m.StartIndex - } - return 0 +type DeleteGCBarrierRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + BarrierId string `protobuf:"bytes,3,opt,name=barrier_id,json=barrierId,proto3" json:"barrier_id,omitempty"` } -func (m *SyncRegionResponse) GetRegionStats() []*RegionStat { - if m != nil { - return m.RegionStats - } - return nil +func (m *DeleteGCBarrierRequest) Reset() { *m = DeleteGCBarrierRequest{} } +func (m *DeleteGCBarrierRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteGCBarrierRequest) ProtoMessage() {} +func (*DeleteGCBarrierRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{104} } - -func (m *SyncRegionResponse) GetRegionLeaders() []*metapb.Peer { - if m != nil { - return m.RegionLeaders +func (m *DeleteGCBarrierRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteGCBarrierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteGCBarrierRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return nil +} +func (m *DeleteGCBarrierRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteGCBarrierRequest.Merge(m, src) +} +func (m *DeleteGCBarrierRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteGCBarrierRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteGCBarrierRequest.DiscardUnknown(m) } -func (m *SyncRegionResponse) GetBuckets() []*metapb.Buckets { +var xxx_messageInfo_DeleteGCBarrierRequest proto.InternalMessageInfo + +func (m *DeleteGCBarrierRequest) GetHeader() *RequestHeader { if m != nil { - return m.Buckets + return m.Header } return nil } -func (m *SyncRegionResponse) GetDownPeers() []*PeersStats { +func (m *DeleteGCBarrierRequest) GetKeyspaceId() uint32 { if m != nil { - return m.DownPeers + return m.KeyspaceId } - return nil + return 0 } -func (m *SyncRegionResponse) GetPendingPeers() []*Peers { +func (m *DeleteGCBarrierRequest) GetBarrierId() string { if m != nil { - return m.PendingPeers + return m.BarrierId } - return nil + return "" } -type GetOperatorRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` +type DeleteGCBarrierResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + DeletedBarrierInfo *GCBarrierInfo `protobuf:"bytes,2,opt,name=deleted_barrier_info,json=deletedBarrierInfo,proto3" json:"deleted_barrier_info,omitempty"` } -func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } -func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } -func (*GetOperatorRequest) ProtoMessage() {} -func (*GetOperatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{104} +func (m *DeleteGCBarrierResponse) Reset() { *m = DeleteGCBarrierResponse{} } +func (m *DeleteGCBarrierResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteGCBarrierResponse) ProtoMessage() {} +func (*DeleteGCBarrierResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{105} } -func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { +func (m *DeleteGCBarrierResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *DeleteGCBarrierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetOperatorRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_DeleteGCBarrierResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6862,52 +6910,49 @@ func (m *GetOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *GetOperatorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOperatorRequest.Merge(m, src) +func (m *DeleteGCBarrierResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteGCBarrierResponse.Merge(m, src) } -func (m *GetOperatorRequest) XXX_Size() int { +func (m *DeleteGCBarrierResponse) XXX_Size() int { return m.Size() } -func (m *GetOperatorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetOperatorRequest.DiscardUnknown(m) +func (m *DeleteGCBarrierResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteGCBarrierResponse.DiscardUnknown(m) } -var xxx_messageInfo_GetOperatorRequest proto.InternalMessageInfo +var xxx_messageInfo_DeleteGCBarrierResponse proto.InternalMessageInfo -func (m *GetOperatorRequest) GetHeader() *RequestHeader { +func (m *DeleteGCBarrierResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *GetOperatorRequest) GetRegionId() uint64 { +func (m *DeleteGCBarrierResponse) GetDeletedBarrierInfo() *GCBarrierInfo { if m != nil { - return m.RegionId + return m.DeletedBarrierInfo } - return 0 + return nil } -type GetOperatorResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - Desc []byte `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` - Status OperatorStatus `protobuf:"varint,4,opt,name=status,proto3,enum=pdpb.OperatorStatus" json:"status,omitempty"` - Kind []byte `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` -} +type GetGCStateRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` +} -func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } -func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } -func (*GetOperatorResponse) ProtoMessage() {} -func (*GetOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{105} +func (m *GetGCStateRequest) Reset() { *m = GetGCStateRequest{} } +func (m *GetGCStateRequest) String() string { return proto.CompactTextString(m) } +func (*GetGCStateRequest) ProtoMessage() {} +func (*GetGCStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{106} } -func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { +func (m *GetGCStateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetGCStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetOperatorResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_GetGCStateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6917,72 +6962,51 @@ func (m *GetOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *GetOperatorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOperatorResponse.Merge(m, src) +func (m *GetGCStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCStateRequest.Merge(m, src) } -func (m *GetOperatorResponse) XXX_Size() int { +func (m *GetGCStateRequest) XXX_Size() int { return m.Size() } -func (m *GetOperatorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetOperatorResponse.DiscardUnknown(m) +func (m *GetGCStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetGCStateRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetOperatorResponse proto.InternalMessageInfo +var xxx_messageInfo_GetGCStateRequest proto.InternalMessageInfo -func (m *GetOperatorResponse) GetHeader() *ResponseHeader { +func (m *GetGCStateRequest) GetHeader() *RequestHeader { if m != nil { return m.Header } return nil } -func (m *GetOperatorResponse) GetRegionId() uint64 { +func (m *GetGCStateRequest) GetKeyspaceId() uint32 { if m != nil { - return m.RegionId + return m.KeyspaceId } return 0 } -func (m *GetOperatorResponse) GetDesc() []byte { - if m != nil { - return m.Desc - } - return nil -} - -func (m *GetOperatorResponse) GetStatus() OperatorStatus { - if m != nil { - return m.Status - } - return OperatorStatus_SUCCESS -} - -func (m *GetOperatorResponse) GetKind() []byte { - if m != nil { - return m.Kind - } - return nil -} - -type SyncMaxTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - MaxTs *Timestamp `protobuf:"bytes,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` - // If skip_check is true, the sync will try to write the max_ts without checking whether it's bigger. - SkipCheck bool `protobuf:"varint,3,opt,name=skip_check,json=skipCheck,proto3" json:"skip_check,omitempty"` +type GetGCStateResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + TxnSafePoint uint64 `protobuf:"varint,2,opt,name=txn_safe_point,json=txnSafePoint,proto3" json:"txn_safe_point,omitempty"` + GcSafePoint uint64 `protobuf:"varint,3,opt,name=gc_safe_point,json=gcSafePoint,proto3" json:"gc_safe_point,omitempty"` + GcBarriers []*GCBarrierInfo `protobuf:"bytes,4,rep,name=gc_barriers,json=gcBarriers,proto3" json:"gc_barriers,omitempty"` } -func (m *SyncMaxTSRequest) Reset() { *m = SyncMaxTSRequest{} } -func (m *SyncMaxTSRequest) String() string { return proto.CompactTextString(m) } -func (*SyncMaxTSRequest) ProtoMessage() {} -func (*SyncMaxTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{106} +func (m *GetGCStateResponse) Reset() { *m = GetGCStateResponse{} } +func (m *GetGCStateResponse) String() string { return proto.CompactTextString(m) } +func (*GetGCStateResponse) ProtoMessage() {} +func (*GetGCStateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{107} } -func (m *SyncMaxTSRequest) XXX_Unmarshal(b []byte) error { +func (m *GetGCStateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SyncMaxTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetGCStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SyncMaxTSRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_GetGCStateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -6992,57 +7016,67 @@ func (m *SyncMaxTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *SyncMaxTSRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncMaxTSRequest.Merge(m, src) +func (m *GetGCStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGCStateResponse.Merge(m, src) } -func (m *SyncMaxTSRequest) XXX_Size() int { +func (m *GetGCStateResponse) XXX_Size() int { return m.Size() } -func (m *SyncMaxTSRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SyncMaxTSRequest.DiscardUnknown(m) +func (m *GetGCStateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetGCStateResponse.DiscardUnknown(m) } -var xxx_messageInfo_SyncMaxTSRequest proto.InternalMessageInfo +var xxx_messageInfo_GetGCStateResponse proto.InternalMessageInfo -func (m *SyncMaxTSRequest) GetHeader() *RequestHeader { +func (m *GetGCStateResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *SyncMaxTSRequest) GetMaxTs() *Timestamp { +func (m *GetGCStateResponse) GetTxnSafePoint() uint64 { if m != nil { - return m.MaxTs + return m.TxnSafePoint } - return nil + return 0 } -func (m *SyncMaxTSRequest) GetSkipCheck() bool { +func (m *GetGCStateResponse) GetGcSafePoint() uint64 { if m != nil { - return m.SkipCheck + return m.GcSafePoint } - return false + return 0 } -type SyncMaxTSResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - MaxLocalTs *Timestamp `protobuf:"bytes,2,opt,name=max_local_ts,json=maxLocalTs,proto3" json:"max_local_ts,omitempty"` - SyncedDcs []string `protobuf:"bytes,3,rep,name=synced_dcs,json=syncedDcs,proto3" json:"synced_dcs,omitempty"` +func (m *GetGCStateResponse) GetGcBarriers() []*GCBarrierInfo { + if m != nil { + return m.GcBarriers + } + return nil } -func (m *SyncMaxTSResponse) Reset() { *m = SyncMaxTSResponse{} } -func (m *SyncMaxTSResponse) String() string { return proto.CompactTextString(m) } -func (*SyncMaxTSResponse) ProtoMessage() {} -func (*SyncMaxTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{107} +type RegionStat struct { + // Bytes read/written during this period. + BytesWritten uint64 `protobuf:"varint,1,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"` + BytesRead uint64 `protobuf:"varint,2,opt,name=bytes_read,json=bytesRead,proto3" json:"bytes_read,omitempty"` + // Keys read/written during this period. + KeysWritten uint64 `protobuf:"varint,3,opt,name=keys_written,json=keysWritten,proto3" json:"keys_written,omitempty"` + KeysRead uint64 `protobuf:"varint,4,opt,name=keys_read,json=keysRead,proto3" json:"keys_read,omitempty"` } -func (m *SyncMaxTSResponse) XXX_Unmarshal(b []byte) error { + +func (m *RegionStat) Reset() { *m = RegionStat{} } +func (m *RegionStat) String() string { return proto.CompactTextString(m) } +func (*RegionStat) ProtoMessage() {} +func (*RegionStat) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{108} +} +func (m *RegionStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SyncMaxTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RegionStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SyncMaxTSResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RegionStat.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7052,57 +7086,66 @@ func (m *SyncMaxTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *SyncMaxTSResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncMaxTSResponse.Merge(m, src) +func (m *RegionStat) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionStat.Merge(m, src) } -func (m *SyncMaxTSResponse) XXX_Size() int { +func (m *RegionStat) XXX_Size() int { return m.Size() } -func (m *SyncMaxTSResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SyncMaxTSResponse.DiscardUnknown(m) +func (m *RegionStat) XXX_DiscardUnknown() { + xxx_messageInfo_RegionStat.DiscardUnknown(m) } -var xxx_messageInfo_SyncMaxTSResponse proto.InternalMessageInfo +var xxx_messageInfo_RegionStat proto.InternalMessageInfo -func (m *SyncMaxTSResponse) GetHeader() *ResponseHeader { +func (m *RegionStat) GetBytesWritten() uint64 { if m != nil { - return m.Header + return m.BytesWritten } - return nil + return 0 } -func (m *SyncMaxTSResponse) GetMaxLocalTs() *Timestamp { +func (m *RegionStat) GetBytesRead() uint64 { if m != nil { - return m.MaxLocalTs + return m.BytesRead } - return nil + return 0 } -func (m *SyncMaxTSResponse) GetSyncedDcs() []string { +func (m *RegionStat) GetKeysWritten() uint64 { if m != nil { - return m.SyncedDcs + return m.KeysWritten } - return nil + return 0 } -type SplitRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys,proto3" json:"split_keys,omitempty"` - RetryLimit uint64 `protobuf:"varint,3,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` +func (m *RegionStat) GetKeysRead() uint64 { + if m != nil { + return m.KeysRead + } + return 0 } -func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } -func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } -func (*SplitRegionsRequest) ProtoMessage() {} -func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{108} +type SyncRegionRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"` + // the follower PD will use the start index to locate historical changes + // that require synchronization. + StartIndex uint64 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` } -func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { + +func (m *SyncRegionRequest) Reset() { *m = SyncRegionRequest{} } +func (m *SyncRegionRequest) String() string { return proto.CompactTextString(m) } +func (*SyncRegionRequest) ProtoMessage() {} +func (*SyncRegionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{109} +} +func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SplitRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SyncRegionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SplitRegionsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_SyncRegionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7112,57 +7155,55 @@ func (m *SplitRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *SplitRegionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRegionsRequest.Merge(m, src) +func (m *SyncRegionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncRegionRequest.Merge(m, src) } -func (m *SplitRegionsRequest) XXX_Size() int { +func (m *SyncRegionRequest) XXX_Size() int { return m.Size() } -func (m *SplitRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRegionsRequest.DiscardUnknown(m) +func (m *SyncRegionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SyncRegionRequest.DiscardUnknown(m) } -var xxx_messageInfo_SplitRegionsRequest proto.InternalMessageInfo +var xxx_messageInfo_SyncRegionRequest proto.InternalMessageInfo -func (m *SplitRegionsRequest) GetHeader() *RequestHeader { +func (m *SyncRegionRequest) GetHeader() *RequestHeader { if m != nil { return m.Header } return nil } -func (m *SplitRegionsRequest) GetSplitKeys() [][]byte { +func (m *SyncRegionRequest) GetMember() *Member { if m != nil { - return m.SplitKeys + return m.Member } return nil } -func (m *SplitRegionsRequest) GetRetryLimit() uint64 { +func (m *SyncRegionRequest) GetStartIndex() uint64 { if m != nil { - return m.RetryLimit + return m.StartIndex } return 0 } -type SplitRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - FinishedPercentage uint64 `protobuf:"varint,2,opt,name=finished_percentage,json=finishedPercentage,proto3" json:"finished_percentage,omitempty"` - RegionsId []uint64 `protobuf:"varint,3,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` +type PeersStats struct { + Peers []*PeerStats `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` } -func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } -func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } -func (*SplitRegionsResponse) ProtoMessage() {} -func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{109} +func (m *PeersStats) Reset() { *m = PeersStats{} } +func (m *PeersStats) String() string { return proto.CompactTextString(m) } +func (*PeersStats) ProtoMessage() {} +func (*PeersStats) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{110} } -func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { +func (m *PeersStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SplitRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PeersStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SplitRegionsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_PeersStats.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7172,58 +7213,41 @@ func (m *SplitRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *SplitRegionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitRegionsResponse.Merge(m, src) +func (m *PeersStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_PeersStats.Merge(m, src) } -func (m *SplitRegionsResponse) XXX_Size() int { +func (m *PeersStats) XXX_Size() int { return m.Size() } -func (m *SplitRegionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SplitRegionsResponse.DiscardUnknown(m) +func (m *PeersStats) XXX_DiscardUnknown() { + xxx_messageInfo_PeersStats.DiscardUnknown(m) } -var xxx_messageInfo_SplitRegionsResponse proto.InternalMessageInfo +var xxx_messageInfo_PeersStats proto.InternalMessageInfo -func (m *SplitRegionsResponse) GetHeader() *ResponseHeader { +func (m *PeersStats) GetPeers() []*PeerStats { if m != nil { - return m.Header + return m.Peers } return nil } -func (m *SplitRegionsResponse) GetFinishedPercentage() uint64 { - if m != nil { - return m.FinishedPercentage - } - return 0 +type Peers struct { + Peers []*metapb.Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` } -func (m *SplitRegionsResponse) GetRegionsId() []uint64 { - if m != nil { - return m.RegionsId - } - return nil +func (m *Peers) Reset() { *m = Peers{} } +func (m *Peers) String() string { return proto.CompactTextString(m) } +func (*Peers) ProtoMessage() {} +func (*Peers) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{111} } - -type SplitAndScatterRegionsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys,proto3" json:"split_keys,omitempty"` - Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` - RetryLimit uint64 `protobuf:"varint,4,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` +func (m *Peers) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (m *SplitAndScatterRegionsRequest) Reset() { *m = SplitAndScatterRegionsRequest{} } -func (m *SplitAndScatterRegionsRequest) String() string { return proto.CompactTextString(m) } -func (*SplitAndScatterRegionsRequest) ProtoMessage() {} -func (*SplitAndScatterRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{110} -} -func (m *SplitAndScatterRegionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SplitAndScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SplitAndScatterRegionsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_Peers.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7233,65 +7257,51 @@ func (m *SplitAndScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *SplitAndScatterRegionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitAndScatterRegionsRequest.Merge(m, src) +func (m *Peers) XXX_Merge(src proto.Message) { + xxx_messageInfo_Peers.Merge(m, src) } -func (m *SplitAndScatterRegionsRequest) XXX_Size() int { +func (m *Peers) XXX_Size() int { return m.Size() } -func (m *SplitAndScatterRegionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SplitAndScatterRegionsRequest.DiscardUnknown(m) +func (m *Peers) XXX_DiscardUnknown() { + xxx_messageInfo_Peers.DiscardUnknown(m) } -var xxx_messageInfo_SplitAndScatterRegionsRequest proto.InternalMessageInfo - -func (m *SplitAndScatterRegionsRequest) GetHeader() *RequestHeader { - if m != nil { - return m.Header - } - return nil -} +var xxx_messageInfo_Peers proto.InternalMessageInfo -func (m *SplitAndScatterRegionsRequest) GetSplitKeys() [][]byte { +func (m *Peers) GetPeers() []*metapb.Peer { if m != nil { - return m.SplitKeys + return m.Peers } return nil } -func (m *SplitAndScatterRegionsRequest) GetGroup() string { - if m != nil { - return m.Group - } - return "" -} - -func (m *SplitAndScatterRegionsRequest) GetRetryLimit() uint64 { - if m != nil { - return m.RetryLimit - } - return 0 -} - -type SplitAndScatterRegionsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - SplitFinishedPercentage uint64 `protobuf:"varint,2,opt,name=split_finished_percentage,json=splitFinishedPercentage,proto3" json:"split_finished_percentage,omitempty"` - ScatterFinishedPercentage uint64 `protobuf:"varint,3,opt,name=scatter_finished_percentage,json=scatterFinishedPercentage,proto3" json:"scatter_finished_percentage,omitempty"` - RegionsId []uint64 `protobuf:"varint,4,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` +type SyncRegionResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + // the leader PD will send the repsonds include + // changed regions records and the index of the first record. + Regions []*metapb.Region `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` + StartIndex uint64 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` + RegionStats []*RegionStat `protobuf:"bytes,4,rep,name=region_stats,json=regionStats,proto3" json:"region_stats,omitempty"` + RegionLeaders []*metapb.Peer `protobuf:"bytes,5,rep,name=region_leaders,json=regionLeaders,proto3" json:"region_leaders,omitempty"` + // the buckets informations without stats. + Buckets []*metapb.Buckets `protobuf:"bytes,6,rep,name=buckets,proto3" json:"buckets,omitempty"` + DownPeers []*PeersStats `protobuf:"bytes,16,rep,name=down_peers,json=downPeers,proto3" json:"down_peers,omitempty"` + PendingPeers []*Peers `protobuf:"bytes,17,rep,name=pending_peers,json=pendingPeers,proto3" json:"pending_peers,omitempty"` } -func (m *SplitAndScatterRegionsResponse) Reset() { *m = SplitAndScatterRegionsResponse{} } -func (m *SplitAndScatterRegionsResponse) String() string { return proto.CompactTextString(m) } -func (*SplitAndScatterRegionsResponse) ProtoMessage() {} -func (*SplitAndScatterRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{111} +func (m *SyncRegionResponse) Reset() { *m = SyncRegionResponse{} } +func (m *SyncRegionResponse) String() string { return proto.CompactTextString(m) } +func (*SyncRegionResponse) ProtoMessage() {} +func (*SyncRegionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{112} } -func (m *SplitAndScatterRegionsResponse) XXX_Unmarshal(b []byte) error { +func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SplitAndScatterRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SyncRegionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SplitAndScatterRegionsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_SyncRegionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7301,63 +7311,91 @@ func (m *SplitAndScatterRegionsResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *SplitAndScatterRegionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SplitAndScatterRegionsResponse.Merge(m, src) +func (m *SyncRegionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncRegionResponse.Merge(m, src) } -func (m *SplitAndScatterRegionsResponse) XXX_Size() int { +func (m *SyncRegionResponse) XXX_Size() int { return m.Size() } -func (m *SplitAndScatterRegionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SplitAndScatterRegionsResponse.DiscardUnknown(m) +func (m *SyncRegionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SyncRegionResponse.DiscardUnknown(m) } -var xxx_messageInfo_SplitAndScatterRegionsResponse proto.InternalMessageInfo +var xxx_messageInfo_SyncRegionResponse proto.InternalMessageInfo -func (m *SplitAndScatterRegionsResponse) GetHeader() *ResponseHeader { +func (m *SyncRegionResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *SplitAndScatterRegionsResponse) GetSplitFinishedPercentage() uint64 { +func (m *SyncRegionResponse) GetRegions() []*metapb.Region { if m != nil { - return m.SplitFinishedPercentage + return m.Regions } - return 0 + return nil } -func (m *SplitAndScatterRegionsResponse) GetScatterFinishedPercentage() uint64 { +func (m *SyncRegionResponse) GetStartIndex() uint64 { if m != nil { - return m.ScatterFinishedPercentage + return m.StartIndex } return 0 } -func (m *SplitAndScatterRegionsResponse) GetRegionsId() []uint64 { +func (m *SyncRegionResponse) GetRegionStats() []*RegionStat { if m != nil { - return m.RegionsId + return m.RegionStats } return nil } -type GetDCLocationInfoRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - DcLocation string `protobuf:"bytes,2,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` +func (m *SyncRegionResponse) GetRegionLeaders() []*metapb.Peer { + if m != nil { + return m.RegionLeaders + } + return nil } -func (m *GetDCLocationInfoRequest) Reset() { *m = GetDCLocationInfoRequest{} } -func (m *GetDCLocationInfoRequest) String() string { return proto.CompactTextString(m) } -func (*GetDCLocationInfoRequest) ProtoMessage() {} -func (*GetDCLocationInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{112} +func (m *SyncRegionResponse) GetBuckets() []*metapb.Buckets { + if m != nil { + return m.Buckets + } + return nil } -func (m *GetDCLocationInfoRequest) XXX_Unmarshal(b []byte) error { + +func (m *SyncRegionResponse) GetDownPeers() []*PeersStats { + if m != nil { + return m.DownPeers + } + return nil +} + +func (m *SyncRegionResponse) GetPendingPeers() []*Peers { + if m != nil { + return m.PendingPeers + } + return nil +} + +type GetOperatorRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` +} + +func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } +func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } +func (*GetOperatorRequest) ProtoMessage() {} +func (*GetOperatorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{113} +} +func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetDCLocationInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetOperatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetDCLocationInfoRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_GetOperatorRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7367,53 +7405,52 @@ func (m *GetDCLocationInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *GetDCLocationInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDCLocationInfoRequest.Merge(m, src) +func (m *GetOperatorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorRequest.Merge(m, src) } -func (m *GetDCLocationInfoRequest) XXX_Size() int { +func (m *GetOperatorRequest) XXX_Size() int { return m.Size() } -func (m *GetDCLocationInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDCLocationInfoRequest.DiscardUnknown(m) +func (m *GetOperatorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetOperatorRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetDCLocationInfoRequest proto.InternalMessageInfo +var xxx_messageInfo_GetOperatorRequest proto.InternalMessageInfo -func (m *GetDCLocationInfoRequest) GetHeader() *RequestHeader { +func (m *GetOperatorRequest) GetHeader() *RequestHeader { if m != nil { return m.Header } return nil } -func (m *GetDCLocationInfoRequest) GetDcLocation() string { +func (m *GetOperatorRequest) GetRegionId() uint64 { if m != nil { - return m.DcLocation + return m.RegionId } - return "" + return 0 } -type GetDCLocationInfoResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - // suffix sign - Suffix int32 `protobuf:"varint,2,opt,name=suffix,proto3" json:"suffix,omitempty"` - // max_ts will be included into this response if PD leader think the receiver needs, - // which it's set when the number of the max suffix bits changes. - MaxTs *Timestamp `protobuf:"bytes,3,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` +type GetOperatorResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + RegionId uint64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + Desc []byte `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` + Status OperatorStatus `protobuf:"varint,4,opt,name=status,proto3,enum=pdpb.OperatorStatus" json:"status,omitempty"` + Kind []byte `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` } -func (m *GetDCLocationInfoResponse) Reset() { *m = GetDCLocationInfoResponse{} } -func (m *GetDCLocationInfoResponse) String() string { return proto.CompactTextString(m) } -func (*GetDCLocationInfoResponse) ProtoMessage() {} -func (*GetDCLocationInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{113} +func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } +func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } +func (*GetOperatorResponse) ProtoMessage() {} +func (*GetOperatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{114} } -func (m *GetDCLocationInfoResponse) XXX_Unmarshal(b []byte) error { +func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetDCLocationInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetOperatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetDCLocationInfoResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_GetOperatorResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7423,65 +7460,72 @@ func (m *GetDCLocationInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *GetDCLocationInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDCLocationInfoResponse.Merge(m, src) +func (m *GetOperatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperatorResponse.Merge(m, src) } -func (m *GetDCLocationInfoResponse) XXX_Size() int { +func (m *GetOperatorResponse) XXX_Size() int { return m.Size() } -func (m *GetDCLocationInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDCLocationInfoResponse.DiscardUnknown(m) +func (m *GetOperatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetOperatorResponse.DiscardUnknown(m) } -var xxx_messageInfo_GetDCLocationInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_GetOperatorResponse proto.InternalMessageInfo -func (m *GetDCLocationInfoResponse) GetHeader() *ResponseHeader { +func (m *GetOperatorResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *GetDCLocationInfoResponse) GetSuffix() int32 { +func (m *GetOperatorResponse) GetRegionId() uint64 { if m != nil { - return m.Suffix + return m.RegionId } return 0 } -func (m *GetDCLocationInfoResponse) GetMaxTs() *Timestamp { +func (m *GetOperatorResponse) GetDesc() []byte { if m != nil { - return m.MaxTs + return m.Desc } return nil } -type QueryStats struct { - GC uint64 `protobuf:"varint,1,opt,name=GC,proto3" json:"GC,omitempty"` - Get uint64 `protobuf:"varint,2,opt,name=Get,proto3" json:"Get,omitempty"` - Scan uint64 `protobuf:"varint,3,opt,name=Scan,proto3" json:"Scan,omitempty"` - Coprocessor uint64 `protobuf:"varint,4,opt,name=Coprocessor,proto3" json:"Coprocessor,omitempty"` - Delete uint64 `protobuf:"varint,5,opt,name=Delete,proto3" json:"Delete,omitempty"` - DeleteRange uint64 `protobuf:"varint,6,opt,name=DeleteRange,proto3" json:"DeleteRange,omitempty"` - Put uint64 `protobuf:"varint,7,opt,name=Put,proto3" json:"Put,omitempty"` - Prewrite uint64 `protobuf:"varint,8,opt,name=Prewrite,proto3" json:"Prewrite,omitempty"` - AcquirePessimisticLock uint64 `protobuf:"varint,9,opt,name=AcquirePessimisticLock,proto3" json:"AcquirePessimisticLock,omitempty"` - Commit uint64 `protobuf:"varint,10,opt,name=Commit,proto3" json:"Commit,omitempty"` - Rollback uint64 `protobuf:"varint,11,opt,name=Rollback,proto3" json:"Rollback,omitempty"` +func (m *GetOperatorResponse) GetStatus() OperatorStatus { + if m != nil { + return m.Status + } + return OperatorStatus_SUCCESS } -func (m *QueryStats) Reset() { *m = QueryStats{} } -func (m *QueryStats) String() string { return proto.CompactTextString(m) } -func (*QueryStats) ProtoMessage() {} -func (*QueryStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{114} -} -func (m *QueryStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func (m *GetOperatorResponse) GetKind() []byte { + if m != nil { + return m.Kind + } + return nil } -func (m *QueryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + +type SyncMaxTSRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + MaxTs *Timestamp `protobuf:"bytes,2,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` + // If skip_check is true, the sync will try to write the max_ts without checking whether it's bigger. + SkipCheck bool `protobuf:"varint,3,opt,name=skip_check,json=skipCheck,proto3" json:"skip_check,omitempty"` +} + +func (m *SyncMaxTSRequest) Reset() { *m = SyncMaxTSRequest{} } +func (m *SyncMaxTSRequest) String() string { return proto.CompactTextString(m) } +func (*SyncMaxTSRequest) ProtoMessage() {} +func (*SyncMaxTSRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{115} +} +func (m *SyncMaxTSRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SyncMaxTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStats.Marshal(b, m, deterministic) + return xxx_messageInfo_SyncMaxTSRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7491,113 +7535,57 @@ func (m *QueryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *QueryStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStats.Merge(m, src) +func (m *SyncMaxTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncMaxTSRequest.Merge(m, src) } -func (m *QueryStats) XXX_Size() int { +func (m *SyncMaxTSRequest) XXX_Size() int { return m.Size() } -func (m *QueryStats) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStats.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryStats proto.InternalMessageInfo - -func (m *QueryStats) GetGC() uint64 { - if m != nil { - return m.GC - } - return 0 -} - -func (m *QueryStats) GetGet() uint64 { - if m != nil { - return m.Get - } - return 0 -} - -func (m *QueryStats) GetScan() uint64 { - if m != nil { - return m.Scan - } - return 0 -} - -func (m *QueryStats) GetCoprocessor() uint64 { - if m != nil { - return m.Coprocessor - } - return 0 -} - -func (m *QueryStats) GetDelete() uint64 { - if m != nil { - return m.Delete - } - return 0 -} - -func (m *QueryStats) GetDeleteRange() uint64 { - if m != nil { - return m.DeleteRange - } - return 0 -} - -func (m *QueryStats) GetPut() uint64 { - if m != nil { - return m.Put - } - return 0 +func (m *SyncMaxTSRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SyncMaxTSRequest.DiscardUnknown(m) } -func (m *QueryStats) GetPrewrite() uint64 { - if m != nil { - return m.Prewrite - } - return 0 -} +var xxx_messageInfo_SyncMaxTSRequest proto.InternalMessageInfo -func (m *QueryStats) GetAcquirePessimisticLock() uint64 { +func (m *SyncMaxTSRequest) GetHeader() *RequestHeader { if m != nil { - return m.AcquirePessimisticLock + return m.Header } - return 0 + return nil } -func (m *QueryStats) GetCommit() uint64 { +func (m *SyncMaxTSRequest) GetMaxTs() *Timestamp { if m != nil { - return m.Commit + return m.MaxTs } - return 0 + return nil } -func (m *QueryStats) GetRollback() uint64 { +func (m *SyncMaxTSRequest) GetSkipCheck() bool { if m != nil { - return m.Rollback + return m.SkipCheck } - return 0 + return false } -type ReportBucketsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` - Buckets *metapb.Buckets `protobuf:"bytes,3,opt,name=buckets,proto3" json:"buckets,omitempty"` +type SyncMaxTSResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + MaxLocalTs *Timestamp `protobuf:"bytes,2,opt,name=max_local_ts,json=maxLocalTs,proto3" json:"max_local_ts,omitempty"` + SyncedDcs []string `protobuf:"bytes,3,rep,name=synced_dcs,json=syncedDcs,proto3" json:"synced_dcs,omitempty"` } -func (m *ReportBucketsRequest) Reset() { *m = ReportBucketsRequest{} } -func (m *ReportBucketsRequest) String() string { return proto.CompactTextString(m) } -func (*ReportBucketsRequest) ProtoMessage() {} -func (*ReportBucketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{115} +func (m *SyncMaxTSResponse) Reset() { *m = SyncMaxTSResponse{} } +func (m *SyncMaxTSResponse) String() string { return proto.CompactTextString(m) } +func (*SyncMaxTSResponse) ProtoMessage() {} +func (*SyncMaxTSResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{116} } -func (m *ReportBucketsRequest) XXX_Unmarshal(b []byte) error { +func (m *SyncMaxTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ReportBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SyncMaxTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ReportBucketsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_SyncMaxTSResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7607,55 +7595,57 @@ func (m *ReportBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *ReportBucketsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportBucketsRequest.Merge(m, src) +func (m *SyncMaxTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncMaxTSResponse.Merge(m, src) } -func (m *ReportBucketsRequest) XXX_Size() int { +func (m *SyncMaxTSResponse) XXX_Size() int { return m.Size() } -func (m *ReportBucketsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReportBucketsRequest.DiscardUnknown(m) +func (m *SyncMaxTSResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SyncMaxTSResponse.DiscardUnknown(m) } -var xxx_messageInfo_ReportBucketsRequest proto.InternalMessageInfo +var xxx_messageInfo_SyncMaxTSResponse proto.InternalMessageInfo -func (m *ReportBucketsRequest) GetHeader() *RequestHeader { +func (m *SyncMaxTSResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *ReportBucketsRequest) GetRegionEpoch() *metapb.RegionEpoch { +func (m *SyncMaxTSResponse) GetMaxLocalTs() *Timestamp { if m != nil { - return m.RegionEpoch + return m.MaxLocalTs } return nil } -func (m *ReportBucketsRequest) GetBuckets() *metapb.Buckets { +func (m *SyncMaxTSResponse) GetSyncedDcs() []string { if m != nil { - return m.Buckets + return m.SyncedDcs } return nil } -type ReportBucketsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +type SplitRegionsRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys,proto3" json:"split_keys,omitempty"` + RetryLimit uint64 `protobuf:"varint,3,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` } -func (m *ReportBucketsResponse) Reset() { *m = ReportBucketsResponse{} } -func (m *ReportBucketsResponse) String() string { return proto.CompactTextString(m) } -func (*ReportBucketsResponse) ProtoMessage() {} -func (*ReportBucketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{116} +func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } +func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } +func (*SplitRegionsRequest) ProtoMessage() {} +func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{117} } -func (m *ReportBucketsResponse) XXX_Unmarshal(b []byte) error { +func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ReportBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SplitRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ReportBucketsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_SplitRegionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7665,43 +7655,57 @@ func (m *ReportBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *ReportBucketsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportBucketsResponse.Merge(m, src) +func (m *SplitRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsRequest.Merge(m, src) } -func (m *ReportBucketsResponse) XXX_Size() int { +func (m *SplitRegionsRequest) XXX_Size() int { return m.Size() } -func (m *ReportBucketsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReportBucketsResponse.DiscardUnknown(m) +func (m *SplitRegionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRegionsRequest.DiscardUnknown(m) } -var xxx_messageInfo_ReportBucketsResponse proto.InternalMessageInfo +var xxx_messageInfo_SplitRegionsRequest proto.InternalMessageInfo -func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { +func (m *SplitRegionsRequest) GetHeader() *RequestHeader { if m != nil { return m.Header } return nil } -type ReportMinResolvedTsRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` - MinResolvedTs uint64 `protobuf:"varint,3,opt,name=min_resolved_ts,json=minResolvedTs,proto3" json:"min_resolved_ts,omitempty"` +func (m *SplitRegionsRequest) GetSplitKeys() [][]byte { + if m != nil { + return m.SplitKeys + } + return nil } -func (m *ReportMinResolvedTsRequest) Reset() { *m = ReportMinResolvedTsRequest{} } -func (m *ReportMinResolvedTsRequest) String() string { return proto.CompactTextString(m) } -func (*ReportMinResolvedTsRequest) ProtoMessage() {} -func (*ReportMinResolvedTsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{117} +func (m *SplitRegionsRequest) GetRetryLimit() uint64 { + if m != nil { + return m.RetryLimit + } + return 0 } -func (m *ReportMinResolvedTsRequest) XXX_Unmarshal(b []byte) error { + +type SplitRegionsResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + FinishedPercentage uint64 `protobuf:"varint,2,opt,name=finished_percentage,json=finishedPercentage,proto3" json:"finished_percentage,omitempty"` + RegionsId []uint64 `protobuf:"varint,3,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` +} + +func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } +func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } +func (*SplitRegionsResponse) ProtoMessage() {} +func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{118} +} +func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ReportMinResolvedTsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SplitRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ReportMinResolvedTsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_SplitRegionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7711,55 +7715,58 @@ func (m *ReportMinResolvedTsRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *ReportMinResolvedTsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportMinResolvedTsRequest.Merge(m, src) +func (m *SplitRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitRegionsResponse.Merge(m, src) } -func (m *ReportMinResolvedTsRequest) XXX_Size() int { +func (m *SplitRegionsResponse) XXX_Size() int { return m.Size() } -func (m *ReportMinResolvedTsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReportMinResolvedTsRequest.DiscardUnknown(m) +func (m *SplitRegionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SplitRegionsResponse.DiscardUnknown(m) } -var xxx_messageInfo_ReportMinResolvedTsRequest proto.InternalMessageInfo +var xxx_messageInfo_SplitRegionsResponse proto.InternalMessageInfo -func (m *ReportMinResolvedTsRequest) GetHeader() *RequestHeader { +func (m *SplitRegionsResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -func (m *ReportMinResolvedTsRequest) GetStoreId() uint64 { +func (m *SplitRegionsResponse) GetFinishedPercentage() uint64 { if m != nil { - return m.StoreId + return m.FinishedPercentage } return 0 } -func (m *ReportMinResolvedTsRequest) GetMinResolvedTs() uint64 { +func (m *SplitRegionsResponse) GetRegionsId() []uint64 { if m != nil { - return m.MinResolvedTs + return m.RegionsId } - return 0 + return nil } -type ReportMinResolvedTsResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +type SplitAndScatterRegionsRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SplitKeys [][]byte `protobuf:"bytes,2,rep,name=split_keys,json=splitKeys,proto3" json:"split_keys,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + RetryLimit uint64 `protobuf:"varint,4,opt,name=retry_limit,json=retryLimit,proto3" json:"retry_limit,omitempty"` } -func (m *ReportMinResolvedTsResponse) Reset() { *m = ReportMinResolvedTsResponse{} } -func (m *ReportMinResolvedTsResponse) String() string { return proto.CompactTextString(m) } -func (*ReportMinResolvedTsResponse) ProtoMessage() {} -func (*ReportMinResolvedTsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{118} +func (m *SplitAndScatterRegionsRequest) Reset() { *m = SplitAndScatterRegionsRequest{} } +func (m *SplitAndScatterRegionsRequest) String() string { return proto.CompactTextString(m) } +func (*SplitAndScatterRegionsRequest) ProtoMessage() {} +func (*SplitAndScatterRegionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{119} } -func (m *ReportMinResolvedTsResponse) XXX_Unmarshal(b []byte) error { +func (m *SplitAndScatterRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ReportMinResolvedTsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SplitAndScatterRegionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ReportMinResolvedTsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_SplitAndScatterRegionsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7769,93 +7776,65 @@ func (m *ReportMinResolvedTsResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *ReportMinResolvedTsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReportMinResolvedTsResponse.Merge(m, src) +func (m *SplitAndScatterRegionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitAndScatterRegionsRequest.Merge(m, src) } -func (m *ReportMinResolvedTsResponse) XXX_Size() int { +func (m *SplitAndScatterRegionsRequest) XXX_Size() int { return m.Size() } -func (m *ReportMinResolvedTsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReportMinResolvedTsResponse.DiscardUnknown(m) +func (m *SplitAndScatterRegionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SplitAndScatterRegionsRequest.DiscardUnknown(m) } -var xxx_messageInfo_ReportMinResolvedTsResponse proto.InternalMessageInfo +var xxx_messageInfo_SplitAndScatterRegionsRequest proto.InternalMessageInfo -func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { +func (m *SplitAndScatterRegionsRequest) GetHeader() *RequestHeader { if m != nil { return m.Header } return nil } -type SetExternalTimestampRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (m *SetExternalTimestampRequest) Reset() { *m = SetExternalTimestampRequest{} } -func (m *SetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } -func (*SetExternalTimestampRequest) ProtoMessage() {} -func (*SetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{119} -} -func (m *SetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetExternalTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetExternalTimestampRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *SplitAndScatterRegionsRequest) GetSplitKeys() [][]byte { + if m != nil { + return m.SplitKeys } + return nil } -func (m *SetExternalTimestampRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetExternalTimestampRequest.Merge(m, src) -} -func (m *SetExternalTimestampRequest) XXX_Size() int { - return m.Size() -} -func (m *SetExternalTimestampRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetExternalTimestampRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SetExternalTimestampRequest proto.InternalMessageInfo -func (m *SetExternalTimestampRequest) GetHeader() *RequestHeader { +func (m *SplitAndScatterRegionsRequest) GetGroup() string { if m != nil { - return m.Header + return m.Group } - return nil + return "" } -func (m *SetExternalTimestampRequest) GetTimestamp() uint64 { +func (m *SplitAndScatterRegionsRequest) GetRetryLimit() uint64 { if m != nil { - return m.Timestamp + return m.RetryLimit } return 0 } -type SetExternalTimestampResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +type SplitAndScatterRegionsResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + SplitFinishedPercentage uint64 `protobuf:"varint,2,opt,name=split_finished_percentage,json=splitFinishedPercentage,proto3" json:"split_finished_percentage,omitempty"` + ScatterFinishedPercentage uint64 `protobuf:"varint,3,opt,name=scatter_finished_percentage,json=scatterFinishedPercentage,proto3" json:"scatter_finished_percentage,omitempty"` + RegionsId []uint64 `protobuf:"varint,4,rep,packed,name=regions_id,json=regionsId,proto3" json:"regions_id,omitempty"` } -func (m *SetExternalTimestampResponse) Reset() { *m = SetExternalTimestampResponse{} } -func (m *SetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } -func (*SetExternalTimestampResponse) ProtoMessage() {} -func (*SetExternalTimestampResponse) Descriptor() ([]byte, []int) { +func (m *SplitAndScatterRegionsResponse) Reset() { *m = SplitAndScatterRegionsResponse{} } +func (m *SplitAndScatterRegionsResponse) String() string { return proto.CompactTextString(m) } +func (*SplitAndScatterRegionsResponse) ProtoMessage() {} +func (*SplitAndScatterRegionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_78b27e6f04f44c6e, []int{120} } -func (m *SetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { +func (m *SplitAndScatterRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *SetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *SplitAndScatterRegionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_SetExternalTimestampResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_SplitAndScatterRegionsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7865,86 +7844,63 @@ func (m *SetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *SetExternalTimestampResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetExternalTimestampResponse.Merge(m, src) +func (m *SplitAndScatterRegionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SplitAndScatterRegionsResponse.Merge(m, src) } -func (m *SetExternalTimestampResponse) XXX_Size() int { +func (m *SplitAndScatterRegionsResponse) XXX_Size() int { return m.Size() } -func (m *SetExternalTimestampResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetExternalTimestampResponse.DiscardUnknown(m) +func (m *SplitAndScatterRegionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SplitAndScatterRegionsResponse.DiscardUnknown(m) } -var xxx_messageInfo_SetExternalTimestampResponse proto.InternalMessageInfo +var xxx_messageInfo_SplitAndScatterRegionsResponse proto.InternalMessageInfo -func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { +func (m *SplitAndScatterRegionsResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -type GetExternalTimestampRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +func (m *SplitAndScatterRegionsResponse) GetSplitFinishedPercentage() uint64 { + if m != nil { + return m.SplitFinishedPercentage + } + return 0 } -func (m *GetExternalTimestampRequest) Reset() { *m = GetExternalTimestampRequest{} } -func (m *GetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } -func (*GetExternalTimestampRequest) ProtoMessage() {} -func (*GetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{121} -} -func (m *GetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetExternalTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetExternalTimestampRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *SplitAndScatterRegionsResponse) GetScatterFinishedPercentage() uint64 { + if m != nil { + return m.ScatterFinishedPercentage } -} -func (m *GetExternalTimestampRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetExternalTimestampRequest.Merge(m, src) -} -func (m *GetExternalTimestampRequest) XXX_Size() int { - return m.Size() -} -func (m *GetExternalTimestampRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetExternalTimestampRequest.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_GetExternalTimestampRequest proto.InternalMessageInfo - -func (m *GetExternalTimestampRequest) GetHeader() *RequestHeader { +func (m *SplitAndScatterRegionsResponse) GetRegionsId() []uint64 { if m != nil { - return m.Header + return m.RegionsId } return nil } -type GetExternalTimestampResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +type GetDCLocationInfoRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + DcLocation string `protobuf:"bytes,2,opt,name=dc_location,json=dcLocation,proto3" json:"dc_location,omitempty"` } -func (m *GetExternalTimestampResponse) Reset() { *m = GetExternalTimestampResponse{} } -func (m *GetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } -func (*GetExternalTimestampResponse) ProtoMessage() {} -func (*GetExternalTimestampResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{122} +func (m *GetDCLocationInfoRequest) Reset() { *m = GetDCLocationInfoRequest{} } +func (m *GetDCLocationInfoRequest) String() string { return proto.CompactTextString(m) } +func (*GetDCLocationInfoRequest) ProtoMessage() {} +func (*GetDCLocationInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{121} } -func (m *GetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { +func (m *GetDCLocationInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetDCLocationInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetExternalTimestampResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_GetDCLocationInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -7954,48 +7910,53 @@ func (m *GetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *GetExternalTimestampResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetExternalTimestampResponse.Merge(m, src) +func (m *GetDCLocationInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDCLocationInfoRequest.Merge(m, src) } -func (m *GetExternalTimestampResponse) XXX_Size() int { +func (m *GetDCLocationInfoRequest) XXX_Size() int { return m.Size() } -func (m *GetExternalTimestampResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetExternalTimestampResponse.DiscardUnknown(m) +func (m *GetDCLocationInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDCLocationInfoRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetExternalTimestampResponse proto.InternalMessageInfo +var xxx_messageInfo_GetDCLocationInfoRequest proto.InternalMessageInfo -func (m *GetExternalTimestampResponse) GetHeader() *ResponseHeader { +func (m *GetDCLocationInfoRequest) GetHeader() *RequestHeader { if m != nil { return m.Header } return nil } -func (m *GetExternalTimestampResponse) GetTimestamp() uint64 { +func (m *GetDCLocationInfoRequest) GetDcLocation() string { if m != nil { - return m.Timestamp + return m.DcLocation } - return 0 + return "" } -type GetMinTSRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +type GetDCLocationInfoResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + // suffix sign + Suffix int32 `protobuf:"varint,2,opt,name=suffix,proto3" json:"suffix,omitempty"` + // max_ts will be included into this response if PD leader think the receiver needs, + // which it's set when the number of the max suffix bits changes. + MaxTs *Timestamp `protobuf:"bytes,3,opt,name=max_ts,json=maxTs,proto3" json:"max_ts,omitempty"` } -func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } -func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } -func (*GetMinTSRequest) ProtoMessage() {} -func (*GetMinTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{123} +func (m *GetDCLocationInfoResponse) Reset() { *m = GetDCLocationInfoResponse{} } +func (m *GetDCLocationInfoResponse) String() string { return proto.CompactTextString(m) } +func (*GetDCLocationInfoResponse) ProtoMessage() {} +func (*GetDCLocationInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{122} } -func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { +func (m *GetDCLocationInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetMinTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetDCLocationInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetMinTSRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_GetDCLocationInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -8005,42 +7966,65 @@ func (m *GetMinTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *GetMinTSRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinTSRequest.Merge(m, src) +func (m *GetDCLocationInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDCLocationInfoResponse.Merge(m, src) } -func (m *GetMinTSRequest) XXX_Size() int { +func (m *GetDCLocationInfoResponse) XXX_Size() int { return m.Size() } -func (m *GetMinTSRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinTSRequest.DiscardUnknown(m) +func (m *GetDCLocationInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDCLocationInfoResponse.DiscardUnknown(m) } -var xxx_messageInfo_GetMinTSRequest proto.InternalMessageInfo +var xxx_messageInfo_GetDCLocationInfoResponse proto.InternalMessageInfo -func (m *GetMinTSRequest) GetHeader() *RequestHeader { +func (m *GetDCLocationInfoResponse) GetHeader() *ResponseHeader { if m != nil { return m.Header } return nil } -type GetMinTSResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - Timestamp *Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +func (m *GetDCLocationInfoResponse) GetSuffix() int32 { + if m != nil { + return m.Suffix + } + return 0 } -func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } -func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } -func (*GetMinTSResponse) ProtoMessage() {} -func (*GetMinTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{124} +func (m *GetDCLocationInfoResponse) GetMaxTs() *Timestamp { + if m != nil { + return m.MaxTs + } + return nil } -func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { + +type QueryStats struct { + GC uint64 `protobuf:"varint,1,opt,name=GC,proto3" json:"GC,omitempty"` + Get uint64 `protobuf:"varint,2,opt,name=Get,proto3" json:"Get,omitempty"` + Scan uint64 `protobuf:"varint,3,opt,name=Scan,proto3" json:"Scan,omitempty"` + Coprocessor uint64 `protobuf:"varint,4,opt,name=Coprocessor,proto3" json:"Coprocessor,omitempty"` + Delete uint64 `protobuf:"varint,5,opt,name=Delete,proto3" json:"Delete,omitempty"` + DeleteRange uint64 `protobuf:"varint,6,opt,name=DeleteRange,proto3" json:"DeleteRange,omitempty"` + Put uint64 `protobuf:"varint,7,opt,name=Put,proto3" json:"Put,omitempty"` + Prewrite uint64 `protobuf:"varint,8,opt,name=Prewrite,proto3" json:"Prewrite,omitempty"` + AcquirePessimisticLock uint64 `protobuf:"varint,9,opt,name=AcquirePessimisticLock,proto3" json:"AcquirePessimisticLock,omitempty"` + Commit uint64 `protobuf:"varint,10,opt,name=Commit,proto3" json:"Commit,omitempty"` + Rollback uint64 `protobuf:"varint,11,opt,name=Rollback,proto3" json:"Rollback,omitempty"` +} + +func (m *QueryStats) Reset() { *m = QueryStats{} } +func (m *QueryStats) String() string { return proto.CompactTextString(m) } +func (*QueryStats) ProtoMessage() {} +func (*QueryStats) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{123} +} +func (m *QueryStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetMinTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetMinTSResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStats.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -8050,4093 +8034,3210 @@ func (m *GetMinTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *GetMinTSResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetMinTSResponse.Merge(m, src) +func (m *QueryStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStats.Merge(m, src) } -func (m *GetMinTSResponse) XXX_Size() int { +func (m *QueryStats) XXX_Size() int { return m.Size() } -func (m *GetMinTSResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetMinTSResponse.DiscardUnknown(m) +func (m *QueryStats) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStats.DiscardUnknown(m) } -var xxx_messageInfo_GetMinTSResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryStats proto.InternalMessageInfo -func (m *GetMinTSResponse) GetHeader() *ResponseHeader { +func (m *QueryStats) GetGC() uint64 { if m != nil { - return m.Header + return m.GC } - return nil + return 0 } -func (m *GetMinTSResponse) GetTimestamp() *Timestamp { +func (m *QueryStats) GetGet() uint64 { if m != nil { - return m.Timestamp + return m.Get } - return nil + return 0 } -func init() { - proto.RegisterEnum("pdpb.EventType", EventType_name, EventType_value) - proto.RegisterEnum("pdpb.ErrorType", ErrorType_name, ErrorType_value) - proto.RegisterEnum("pdpb.ServiceMode", ServiceMode_name, ServiceMode_value) - proto.RegisterEnum("pdpb.CheckPolicy", CheckPolicy_name, CheckPolicy_value) - proto.RegisterEnum("pdpb.ControlGrpcEvent", ControlGrpcEvent_name, ControlGrpcEvent_value) - proto.RegisterEnum("pdpb.OperatorStatus", OperatorStatus_name, OperatorStatus_value) - proto.RegisterEnum("pdpb.QueryKind", QueryKind_name, QueryKind_value) - proto.RegisterType((*WatchGlobalConfigRequest)(nil), "pdpb.WatchGlobalConfigRequest") - proto.RegisterType((*WatchGlobalConfigResponse)(nil), "pdpb.WatchGlobalConfigResponse") - proto.RegisterType((*StoreGlobalConfigRequest)(nil), "pdpb.StoreGlobalConfigRequest") - proto.RegisterType((*StoreGlobalConfigResponse)(nil), "pdpb.StoreGlobalConfigResponse") - proto.RegisterType((*LoadGlobalConfigRequest)(nil), "pdpb.LoadGlobalConfigRequest") - proto.RegisterType((*LoadGlobalConfigResponse)(nil), "pdpb.LoadGlobalConfigResponse") - proto.RegisterType((*GlobalConfigItem)(nil), "pdpb.GlobalConfigItem") - proto.RegisterType((*RequestHeader)(nil), "pdpb.RequestHeader") - proto.RegisterType((*ResponseHeader)(nil), "pdpb.ResponseHeader") - proto.RegisterType((*Error)(nil), "pdpb.Error") - proto.RegisterType((*TsoRequest)(nil), "pdpb.TsoRequest") - proto.RegisterType((*Timestamp)(nil), "pdpb.Timestamp") - proto.RegisterType((*TsoResponse)(nil), "pdpb.TsoResponse") - proto.RegisterType((*BootstrapRequest)(nil), "pdpb.BootstrapRequest") - proto.RegisterType((*BootstrapResponse)(nil), "pdpb.BootstrapResponse") - proto.RegisterType((*IsBootstrappedRequest)(nil), "pdpb.IsBootstrappedRequest") - proto.RegisterType((*IsBootstrappedResponse)(nil), "pdpb.IsBootstrappedResponse") - proto.RegisterType((*AllocIDRequest)(nil), "pdpb.AllocIDRequest") - proto.RegisterType((*AllocIDResponse)(nil), "pdpb.AllocIDResponse") - proto.RegisterType((*IsSnapshotRecoveringRequest)(nil), "pdpb.IsSnapshotRecoveringRequest") - proto.RegisterType((*IsSnapshotRecoveringResponse)(nil), "pdpb.IsSnapshotRecoveringResponse") - proto.RegisterType((*GetStoreRequest)(nil), "pdpb.GetStoreRequest") - proto.RegisterType((*GetStoreResponse)(nil), "pdpb.GetStoreResponse") - proto.RegisterType((*PutStoreRequest)(nil), "pdpb.PutStoreRequest") - proto.RegisterType((*PutStoreResponse)(nil), "pdpb.PutStoreResponse") - proto.RegisterType((*GetAllStoresRequest)(nil), "pdpb.GetAllStoresRequest") - proto.RegisterType((*GetAllStoresResponse)(nil), "pdpb.GetAllStoresResponse") - proto.RegisterType((*GetRegionRequest)(nil), "pdpb.GetRegionRequest") - proto.RegisterType((*GetRegionResponse)(nil), "pdpb.GetRegionResponse") - proto.RegisterType((*GetRegionByIDRequest)(nil), "pdpb.GetRegionByIDRequest") - proto.RegisterType((*ScanRegionsRequest)(nil), "pdpb.ScanRegionsRequest") - proto.RegisterType((*Region)(nil), "pdpb.Region") - proto.RegisterType((*ScanRegionsResponse)(nil), "pdpb.ScanRegionsResponse") - proto.RegisterType((*KeyRange)(nil), "pdpb.KeyRange") - proto.RegisterType((*BatchScanRegionsRequest)(nil), "pdpb.BatchScanRegionsRequest") - proto.RegisterType((*BatchScanRegionsResponse)(nil), "pdpb.BatchScanRegionsResponse") - proto.RegisterType((*GetClusterConfigRequest)(nil), "pdpb.GetClusterConfigRequest") - proto.RegisterType((*GetClusterConfigResponse)(nil), "pdpb.GetClusterConfigResponse") - proto.RegisterType((*PutClusterConfigRequest)(nil), "pdpb.PutClusterConfigRequest") - proto.RegisterType((*PutClusterConfigResponse)(nil), "pdpb.PutClusterConfigResponse") - proto.RegisterType((*Member)(nil), "pdpb.Member") - proto.RegisterType((*GetMembersRequest)(nil), "pdpb.GetMembersRequest") - proto.RegisterType((*GetMembersResponse)(nil), "pdpb.GetMembersResponse") - proto.RegisterMapType((map[string]*Member)(nil), "pdpb.GetMembersResponse.TsoAllocatorLeadersEntry") - proto.RegisterType((*GetClusterInfoRequest)(nil), "pdpb.GetClusterInfoRequest") - proto.RegisterType((*GetClusterInfoResponse)(nil), "pdpb.GetClusterInfoResponse") - proto.RegisterType((*PeerStats)(nil), "pdpb.PeerStats") - proto.RegisterType((*RegionHeartbeatRequest)(nil), "pdpb.RegionHeartbeatRequest") - proto.RegisterType((*ChangePeer)(nil), "pdpb.ChangePeer") - proto.RegisterType((*ChangePeerV2)(nil), "pdpb.ChangePeerV2") - proto.RegisterType((*TransferLeader)(nil), "pdpb.TransferLeader") - proto.RegisterType((*Merge)(nil), "pdpb.Merge") - proto.RegisterType((*SplitRegion)(nil), "pdpb.SplitRegion") - proto.RegisterType((*SwitchWitness)(nil), "pdpb.SwitchWitness") - proto.RegisterType((*BatchSwitchWitness)(nil), "pdpb.BatchSwitchWitness") - proto.RegisterType((*RegionHeartbeatResponse)(nil), "pdpb.RegionHeartbeatResponse") - proto.RegisterType((*AskSplitRequest)(nil), "pdpb.AskSplitRequest") - proto.RegisterType((*AskSplitResponse)(nil), "pdpb.AskSplitResponse") - proto.RegisterType((*ReportSplitRequest)(nil), "pdpb.ReportSplitRequest") - proto.RegisterType((*ReportSplitResponse)(nil), "pdpb.ReportSplitResponse") - proto.RegisterType((*AskBatchSplitRequest)(nil), "pdpb.AskBatchSplitRequest") - proto.RegisterType((*SplitID)(nil), "pdpb.SplitID") - proto.RegisterType((*AskBatchSplitResponse)(nil), "pdpb.AskBatchSplitResponse") - proto.RegisterType((*ReportBatchSplitRequest)(nil), "pdpb.ReportBatchSplitRequest") - proto.RegisterType((*ReportBatchSplitResponse)(nil), "pdpb.ReportBatchSplitResponse") - proto.RegisterType((*TimeInterval)(nil), "pdpb.TimeInterval") - proto.RegisterType((*RecordPair)(nil), "pdpb.RecordPair") - proto.RegisterType((*PeerStat)(nil), "pdpb.PeerStat") - proto.RegisterType((*StoreStats)(nil), "pdpb.StoreStats") - proto.RegisterType((*SlowTrend)(nil), "pdpb.SlowTrend") - proto.RegisterType((*SnapshotStat)(nil), "pdpb.SnapshotStat") - proto.RegisterType((*PeerReport)(nil), "pdpb.PeerReport") - proto.RegisterType((*StoreReport)(nil), "pdpb.StoreReport") - proto.RegisterType((*StoreHeartbeatRequest)(nil), "pdpb.StoreHeartbeatRequest") - proto.RegisterType((*DemoteFailedVoters)(nil), "pdpb.DemoteFailedVoters") - proto.RegisterType((*ForceLeader)(nil), "pdpb.ForceLeader") - proto.RegisterType((*RecoveryPlan)(nil), "pdpb.RecoveryPlan") - proto.RegisterType((*AwakenRegions)(nil), "pdpb.AwakenRegions") - proto.RegisterType((*ControlGrpc)(nil), "pdpb.ControlGrpc") - proto.RegisterType((*StoreHeartbeatResponse)(nil), "pdpb.StoreHeartbeatResponse") - proto.RegisterType((*ScatterRegionRequest)(nil), "pdpb.ScatterRegionRequest") - proto.RegisterType((*ScatterRegionResponse)(nil), "pdpb.ScatterRegionResponse") - proto.RegisterType((*GetGCSafePointRequest)(nil), "pdpb.GetGCSafePointRequest") - proto.RegisterType((*GetGCSafePointResponse)(nil), "pdpb.GetGCSafePointResponse") - proto.RegisterType((*UpdateGCSafePointRequest)(nil), "pdpb.UpdateGCSafePointRequest") - proto.RegisterType((*UpdateGCSafePointResponse)(nil), "pdpb.UpdateGCSafePointResponse") - proto.RegisterType((*UpdateServiceGCSafePointRequest)(nil), "pdpb.UpdateServiceGCSafePointRequest") - proto.RegisterType((*UpdateServiceGCSafePointResponse)(nil), "pdpb.UpdateServiceGCSafePointResponse") - proto.RegisterType((*GetGCSafePointV2Request)(nil), "pdpb.GetGCSafePointV2Request") - proto.RegisterType((*GetGCSafePointV2Response)(nil), "pdpb.GetGCSafePointV2Response") - proto.RegisterType((*WatchGCSafePointV2Request)(nil), "pdpb.WatchGCSafePointV2Request") - proto.RegisterType((*SafePointEvent)(nil), "pdpb.SafePointEvent") - proto.RegisterType((*WatchGCSafePointV2Response)(nil), "pdpb.WatchGCSafePointV2Response") - proto.RegisterType((*UpdateGCSafePointV2Request)(nil), "pdpb.UpdateGCSafePointV2Request") - proto.RegisterType((*UpdateGCSafePointV2Response)(nil), "pdpb.UpdateGCSafePointV2Response") - proto.RegisterType((*UpdateServiceSafePointV2Request)(nil), "pdpb.UpdateServiceSafePointV2Request") - proto.RegisterType((*UpdateServiceSafePointV2Response)(nil), "pdpb.UpdateServiceSafePointV2Response") - proto.RegisterType((*GetAllGCSafePointV2Request)(nil), "pdpb.GetAllGCSafePointV2Request") - proto.RegisterType((*GCSafePointV2)(nil), "pdpb.GCSafePointV2") - proto.RegisterType((*GetAllGCSafePointV2Response)(nil), "pdpb.GetAllGCSafePointV2Response") - proto.RegisterType((*RegionStat)(nil), "pdpb.RegionStat") - proto.RegisterType((*SyncRegionRequest)(nil), "pdpb.SyncRegionRequest") - proto.RegisterType((*PeersStats)(nil), "pdpb.PeersStats") - proto.RegisterType((*Peers)(nil), "pdpb.Peers") - proto.RegisterType((*SyncRegionResponse)(nil), "pdpb.SyncRegionResponse") - proto.RegisterType((*GetOperatorRequest)(nil), "pdpb.GetOperatorRequest") - proto.RegisterType((*GetOperatorResponse)(nil), "pdpb.GetOperatorResponse") - proto.RegisterType((*SyncMaxTSRequest)(nil), "pdpb.SyncMaxTSRequest") - proto.RegisterType((*SyncMaxTSResponse)(nil), "pdpb.SyncMaxTSResponse") - proto.RegisterType((*SplitRegionsRequest)(nil), "pdpb.SplitRegionsRequest") - proto.RegisterType((*SplitRegionsResponse)(nil), "pdpb.SplitRegionsResponse") - proto.RegisterType((*SplitAndScatterRegionsRequest)(nil), "pdpb.SplitAndScatterRegionsRequest") - proto.RegisterType((*SplitAndScatterRegionsResponse)(nil), "pdpb.SplitAndScatterRegionsResponse") - proto.RegisterType((*GetDCLocationInfoRequest)(nil), "pdpb.GetDCLocationInfoRequest") - proto.RegisterType((*GetDCLocationInfoResponse)(nil), "pdpb.GetDCLocationInfoResponse") - proto.RegisterType((*QueryStats)(nil), "pdpb.QueryStats") - proto.RegisterType((*ReportBucketsRequest)(nil), "pdpb.ReportBucketsRequest") - proto.RegisterType((*ReportBucketsResponse)(nil), "pdpb.ReportBucketsResponse") - proto.RegisterType((*ReportMinResolvedTsRequest)(nil), "pdpb.ReportMinResolvedTsRequest") - proto.RegisterType((*ReportMinResolvedTsResponse)(nil), "pdpb.ReportMinResolvedTsResponse") - proto.RegisterType((*SetExternalTimestampRequest)(nil), "pdpb.SetExternalTimestampRequest") - proto.RegisterType((*SetExternalTimestampResponse)(nil), "pdpb.SetExternalTimestampResponse") - proto.RegisterType((*GetExternalTimestampRequest)(nil), "pdpb.GetExternalTimestampRequest") - proto.RegisterType((*GetExternalTimestampResponse)(nil), "pdpb.GetExternalTimestampResponse") - proto.RegisterType((*GetMinTSRequest)(nil), "pdpb.GetMinTSRequest") - proto.RegisterType((*GetMinTSResponse)(nil), "pdpb.GetMinTSResponse") +func (m *QueryStats) GetScan() uint64 { + if m != nil { + return m.Scan + } + return 0 } -func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_78b27e6f04f44c6e) } +func (m *QueryStats) GetCoprocessor() uint64 { + if m != nil { + return m.Coprocessor + } + return 0 +} -var fileDescriptor_78b27e6f04f44c6e = []byte{ - // 6377 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x7c, 0x4b, 0x73, 0xe4, 0xc8, - 0x71, 0x30, 0xd1, 0x0f, 0xb2, 0x3b, 0xfb, 0x41, 0xb0, 0xc8, 0x19, 0xf6, 0xf4, 0x3c, 0x17, 0x33, - 0xb3, 0xdf, 0xcc, 0x68, 0x77, 0x76, 0x97, 0xbb, 0xd2, 0xb7, 0xda, 0xef, 0xd3, 0x86, 0x9a, 0x64, - 0x0f, 0xb7, 0x77, 0xf8, 0xe8, 0x0f, 0xdd, 0x9c, 0xd5, 0x7e, 0x56, 0x18, 0x01, 0x02, 0x45, 0x12, - 0x22, 0x1a, 0xe8, 0x05, 0xd0, 0x9c, 0x69, 0x85, 0x0f, 0x7e, 0xc9, 0xb6, 0xc2, 0x52, 0x58, 0x11, - 0xf2, 0x43, 0xbe, 0xe8, 0x60, 0x3b, 0x6c, 0x47, 0xd8, 0xbe, 0xf8, 0xe0, 0xf0, 0xcd, 0x37, 0x87, - 0x8f, 0x3a, 0x2a, 0x7c, 0x70, 0x28, 0xb4, 0xbe, 0xf8, 0x0f, 0xf8, 0x62, 0x1f, 0x1c, 0xf5, 0x42, - 0x03, 0x68, 0x74, 0x73, 0x06, 0xb3, 0xa3, 0xd0, 0xa9, 0x1b, 0x99, 0x89, 0xac, 0xac, 0xac, 0xac, - 0xac, 0xcc, 0xac, 0x2a, 0x00, 0x0c, 0xcd, 0xe1, 0xd1, 0xc3, 0xa1, 0xe7, 0x06, 0x2e, 0x2a, 0x90, - 0xff, 0x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 0x1e, 0x32, 0xe9, 0xe2, 0x21, 0xcb, 0x4d, 0x0d, 0xd9, 0x31, - 0x5c, 0x4a, 0x74, 0x2f, 0x93, 0xfd, 0xdc, 0x84, 0xbc, 0xe0, 0x5f, 0xd9, 0xa8, 0x45, 0xa6, 0x65, - 0x67, 0x5b, 0x25, 0x18, 0x65, 0x48, 0x5c, 0x24, 0x19, 0x8c, 0x97, 0xd4, 0xe4, 0xbd, 0x64, 0xf9, - 0x20, 0xa9, 0xca, 0xb0, 0x80, 0xf0, 0x11, 0x34, 0xa6, 0x5b, 0xcc, 0x64, 0x03, 0xdf, 0x84, 0x6a, - 0x34, 0x6c, 0x22, 0x69, 0x2a, 0xab, 0x0f, 0x4d, 0x76, 0x30, 0x99, 0xee, 0xeb, 0x14, 0x3c, 0xd9, - 0x8f, 0xbd, 0x0d, 0x35, 0xec, 0x98, 0x11, 0x32, 0x36, 0xab, 0xaa, 0xd8, 0x31, 0x43, 0x22, 0xe5, - 0x3d, 0x00, 0x15, 0x1b, 0xae, 0x67, 0x76, 0x75, 0xcb, 0x4b, 0x49, 0x67, 0x62, 0xbb, 0xff, 0x05, - 0x9e, 0xc0, 0x28, 0xff, 0x26, 0x41, 0x49, 0xc4, 0xb6, 0x71, 0x27, 0x2e, 0x25, 0x9c, 0x38, 0x45, - 0xea, 0xa6, 0xc6, 0x57, 0x55, 0x8e, 0xd4, 0x4d, 0x1a, 0xcc, 0xd1, 0x22, 0xb9, 0x6e, 0x6a, 0x34, - 0x48, 0xa5, 0xf6, 0x56, 0x50, 0x29, 0xf9, 0x26, 0x01, 0x24, 0x63, 0xaf, 0xc2, 0x73, 0xc4, 0x5e, - 0xaf, 0x41, 0x95, 0xc7, 0xb7, 0xac, 0xc5, 0x22, 0xb3, 0x4a, 0x0e, 0xa3, 0x8d, 0xde, 0x86, 0x9a, - 0x20, 0x61, 0xed, 0xf2, 0x58, 0x9a, 0x03, 0x69, 0xd3, 0xca, 0x9f, 0x96, 0x01, 0x26, 0xf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, 0x90, 0x5d, 0xef, 0xe4, 0x61, 0x60, 0x9d, 0x9d, 0x3f, - 0x3c, 0x3b, 0xa7, 0xdf, 0x7b, 0x3e, 0x5a, 0xa4, 0x3f, 0xef, 0xfe, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xf8, 0xa5, 0x22, 0x72, 0x7d, 0x5a, 0x00, 0x00, +func (m *QueryStats) GetDelete() uint64 { + if m != nil { + return m.Delete + } + return 0 } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +func (m *QueryStats) GetDeleteRange() uint64 { + if m != nil { + return m.DeleteRange + } + return 0 +} -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +func (m *QueryStats) GetPut() uint64 { + if m != nil { + return m.Put + } + return 0 +} -// PDClient is the client API for PD service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PDClient interface { - // GetClusterInfo get the information of this cluster. It does not require - // the cluster_id in request matchs the id of this cluster. - GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) - // GetMembers get the member list of this cluster. It does not require - // the cluster_id in request matchs the id of this cluster. - GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error) - Tso(ctx context.Context, opts ...grpc.CallOption) (PD_TsoClient, error) - Bootstrap(ctx context.Context, in *BootstrapRequest, opts ...grpc.CallOption) (*BootstrapResponse, error) - IsBootstrapped(ctx context.Context, in *IsBootstrappedRequest, opts ...grpc.CallOption) (*IsBootstrappedResponse, error) - AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc.CallOption) (*AllocIDResponse, error) - IsSnapshotRecovering(ctx context.Context, in *IsSnapshotRecoveringRequest, opts ...grpc.CallOption) (*IsSnapshotRecoveringResponse, error) - GetStore(ctx context.Context, in *GetStoreRequest, opts ...grpc.CallOption) (*GetStoreResponse, error) - PutStore(ctx context.Context, in *PutStoreRequest, opts ...grpc.CallOption) (*PutStoreResponse, error) - GetAllStores(ctx context.Context, in *GetAllStoresRequest, opts ...grpc.CallOption) (*GetAllStoresResponse, error) - StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) - RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (PD_RegionHeartbeatClient, error) - GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) - GetPrevRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) - GetRegionByID(ctx context.Context, in *GetRegionByIDRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) - // Deprecated: use BatchScanRegions instead. - ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts ...grpc.CallOption) (*ScanRegionsResponse, error) - BatchScanRegions(ctx context.Context, in *BatchScanRegionsRequest, opts ...grpc.CallOption) (*BatchScanRegionsResponse, error) - AskSplit(ctx context.Context, in *AskSplitRequest, opts ...grpc.CallOption) (*AskSplitResponse, error) - ReportSplit(ctx context.Context, in *ReportSplitRequest, opts ...grpc.CallOption) (*ReportSplitResponse, error) - AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) - ReportBatchSplit(ctx context.Context, in *ReportBatchSplitRequest, opts ...grpc.CallOption) (*ReportBatchSplitResponse, error) - GetClusterConfig(ctx context.Context, in *GetClusterConfigRequest, opts ...grpc.CallOption) (*GetClusterConfigResponse, error) - PutClusterConfig(ctx context.Context, in *PutClusterConfigRequest, opts ...grpc.CallOption) (*PutClusterConfigResponse, error) - ScatterRegion(ctx context.Context, in *ScatterRegionRequest, opts ...grpc.CallOption) (*ScatterRegionResponse, error) - GetGCSafePoint(ctx context.Context, in *GetGCSafePointRequest, opts ...grpc.CallOption) (*GetGCSafePointResponse, error) - UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointRequest, opts ...grpc.CallOption) (*UpdateGCSafePointResponse, error) - UpdateServiceGCSafePoint(ctx context.Context, in *UpdateServiceGCSafePointRequest, opts ...grpc.CallOption) (*UpdateServiceGCSafePointResponse, error) - GetGCSafePointV2(ctx context.Context, in *GetGCSafePointV2Request, opts ...grpc.CallOption) (*GetGCSafePointV2Response, error) - WatchGCSafePointV2(ctx context.Context, in *WatchGCSafePointV2Request, opts ...grpc.CallOption) (PD_WatchGCSafePointV2Client, error) - UpdateGCSafePointV2(ctx context.Context, in *UpdateGCSafePointV2Request, opts ...grpc.CallOption) (*UpdateGCSafePointV2Response, error) - UpdateServiceSafePointV2(ctx context.Context, in *UpdateServiceSafePointV2Request, opts ...grpc.CallOption) (*UpdateServiceSafePointV2Response, error) - GetAllGCSafePointV2(ctx context.Context, in *GetAllGCSafePointV2Request, opts ...grpc.CallOption) (*GetAllGCSafePointV2Response, error) - SyncRegions(ctx context.Context, opts ...grpc.CallOption) (PD_SyncRegionsClient, error) - GetOperator(ctx context.Context, in *GetOperatorRequest, opts ...grpc.CallOption) (*GetOperatorResponse, error) - SyncMaxTS(ctx context.Context, in *SyncMaxTSRequest, opts ...grpc.CallOption) (*SyncMaxTSResponse, error) - SplitRegions(ctx context.Context, in *SplitRegionsRequest, opts ...grpc.CallOption) (*SplitRegionsResponse, error) - SplitAndScatterRegions(ctx context.Context, in *SplitAndScatterRegionsRequest, opts ...grpc.CallOption) (*SplitAndScatterRegionsResponse, error) - GetDCLocationInfo(ctx context.Context, in *GetDCLocationInfoRequest, opts ...grpc.CallOption) (*GetDCLocationInfoResponse, error) - StoreGlobalConfig(ctx context.Context, in *StoreGlobalConfigRequest, opts ...grpc.CallOption) (*StoreGlobalConfigResponse, error) - LoadGlobalConfig(ctx context.Context, in *LoadGlobalConfigRequest, opts ...grpc.CallOption) (*LoadGlobalConfigResponse, error) - WatchGlobalConfig(ctx context.Context, in *WatchGlobalConfigRequest, opts ...grpc.CallOption) (PD_WatchGlobalConfigClient, error) - ReportBuckets(ctx context.Context, opts ...grpc.CallOption) (PD_ReportBucketsClient, error) - ReportMinResolvedTS(ctx context.Context, in *ReportMinResolvedTsRequest, opts ...grpc.CallOption) (*ReportMinResolvedTsResponse, error) - SetExternalTimestamp(ctx context.Context, in *SetExternalTimestampRequest, opts ...grpc.CallOption) (*SetExternalTimestampResponse, error) - GetExternalTimestamp(ctx context.Context, in *GetExternalTimestampRequest, opts ...grpc.CallOption) (*GetExternalTimestampResponse, error) - // Get the minimum timestamp across all keyspace groups from API server - // TODO: Currently, we need to ask API server to get the minimum timestamp. - // Once we support service discovery, we can remove it. - GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...grpc.CallOption) (*GetMinTSResponse, error) -} - -type pDClient struct { - cc *grpc.ClientConn -} - -func NewPDClient(cc *grpc.ClientConn) PDClient { - return &pDClient{cc} +func (m *QueryStats) GetPrewrite() uint64 { + if m != nil { + return m.Prewrite + } + return 0 } -func (c *pDClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) { - out := new(GetClusterInfoResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetClusterInfo", in, out, opts...) - if err != nil { - return nil, err +func (m *QueryStats) GetAcquirePessimisticLock() uint64 { + if m != nil { + return m.AcquirePessimisticLock } - return out, nil + return 0 } -func (c *pDClient) GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error) { - out := new(GetMembersResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetMembers", in, out, opts...) - if err != nil { - return nil, err +func (m *QueryStats) GetCommit() uint64 { + if m != nil { + return m.Commit } - return out, nil + return 0 } -func (c *pDClient) Tso(ctx context.Context, opts ...grpc.CallOption) (PD_TsoClient, error) { - stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[0], "/pdpb.PD/Tso", opts...) - if err != nil { - return nil, err +func (m *QueryStats) GetRollback() uint64 { + if m != nil { + return m.Rollback } - x := &pDTsoClient{stream} - return x, nil + return 0 } -type PD_TsoClient interface { - Send(*TsoRequest) error - Recv() (*TsoResponse, error) - grpc.ClientStream +type ReportBucketsRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + RegionEpoch *metapb.RegionEpoch `protobuf:"bytes,2,opt,name=region_epoch,json=regionEpoch,proto3" json:"region_epoch,omitempty"` + Buckets *metapb.Buckets `protobuf:"bytes,3,opt,name=buckets,proto3" json:"buckets,omitempty"` } -type pDTsoClient struct { - grpc.ClientStream +func (m *ReportBucketsRequest) Reset() { *m = ReportBucketsRequest{} } +func (m *ReportBucketsRequest) String() string { return proto.CompactTextString(m) } +func (*ReportBucketsRequest) ProtoMessage() {} +func (*ReportBucketsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{124} } - -func (x *pDTsoClient) Send(m *TsoRequest) error { - return x.ClientStream.SendMsg(m) +func (m *ReportBucketsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (x *pDTsoClient) Recv() (*TsoResponse, error) { - m := new(TsoResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *ReportBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportBucketsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil } - -func (c *pDClient) Bootstrap(ctx context.Context, in *BootstrapRequest, opts ...grpc.CallOption) (*BootstrapResponse, error) { - out := new(BootstrapResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/Bootstrap", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportBucketsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBucketsRequest.Merge(m, src) } - -func (c *pDClient) IsBootstrapped(ctx context.Context, in *IsBootstrappedRequest, opts ...grpc.CallOption) (*IsBootstrappedResponse, error) { - out := new(IsBootstrappedResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/IsBootstrapped", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportBucketsRequest) XXX_Size() int { + return m.Size() } - -func (c *pDClient) AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc.CallOption) (*AllocIDResponse, error) { - out := new(AllocIDResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/AllocID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportBucketsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportBucketsRequest.DiscardUnknown(m) } -func (c *pDClient) IsSnapshotRecovering(ctx context.Context, in *IsSnapshotRecoveringRequest, opts ...grpc.CallOption) (*IsSnapshotRecoveringResponse, error) { - out := new(IsSnapshotRecoveringResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/IsSnapshotRecovering", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +var xxx_messageInfo_ReportBucketsRequest proto.InternalMessageInfo -func (c *pDClient) GetStore(ctx context.Context, in *GetStoreRequest, opts ...grpc.CallOption) (*GetStoreResponse, error) { - out := new(GetStoreResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetStore", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportBucketsRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header } - return out, nil + return nil } -func (c *pDClient) PutStore(ctx context.Context, in *PutStoreRequest, opts ...grpc.CallOption) (*PutStoreResponse, error) { - out := new(PutStoreResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/PutStore", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportBucketsRequest) GetRegionEpoch() *metapb.RegionEpoch { + if m != nil { + return m.RegionEpoch } - return out, nil + return nil } -func (c *pDClient) GetAllStores(ctx context.Context, in *GetAllStoresRequest, opts ...grpc.CallOption) (*GetAllStoresResponse, error) { - out := new(GetAllStoresResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetAllStores", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportBucketsRequest) GetBuckets() *metapb.Buckets { + if m != nil { + return m.Buckets } - return out, nil + return nil } -func (c *pDClient) StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) { - out := new(StoreHeartbeatResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/StoreHeartbeat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type ReportBucketsResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -func (c *pDClient) RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (PD_RegionHeartbeatClient, error) { - stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[1], "/pdpb.PD/RegionHeartbeat", opts...) - if err != nil { - return nil, err +func (m *ReportBucketsResponse) Reset() { *m = ReportBucketsResponse{} } +func (m *ReportBucketsResponse) String() string { return proto.CompactTextString(m) } +func (*ReportBucketsResponse) ProtoMessage() {} +func (*ReportBucketsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{125} +} +func (m *ReportBucketsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportBucketsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - x := &pDRegionHeartbeatClient{stream} - return x, nil } - -type PD_RegionHeartbeatClient interface { - Send(*RegionHeartbeatRequest) error - Recv() (*RegionHeartbeatResponse, error) - grpc.ClientStream +func (m *ReportBucketsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportBucketsResponse.Merge(m, src) } - -type pDRegionHeartbeatClient struct { - grpc.ClientStream +func (m *ReportBucketsResponse) XXX_Size() int { + return m.Size() } - -func (x *pDRegionHeartbeatClient) Send(m *RegionHeartbeatRequest) error { - return x.ClientStream.SendMsg(m) +func (m *ReportBucketsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReportBucketsResponse.DiscardUnknown(m) } -func (x *pDRegionHeartbeatClient) Recv() (*RegionHeartbeatResponse, error) { - m := new(RegionHeartbeatResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +var xxx_messageInfo_ReportBucketsResponse proto.InternalMessageInfo + +func (m *ReportBucketsResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header } - return m, nil + return nil } -func (c *pDClient) GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { - out := new(GetRegionResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetRegion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type ReportMinResolvedTsRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + StoreId uint64 `protobuf:"varint,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` + MinResolvedTs uint64 `protobuf:"varint,3,opt,name=min_resolved_ts,json=minResolvedTs,proto3" json:"min_resolved_ts,omitempty"` } -func (c *pDClient) GetPrevRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { - out := new(GetRegionResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetPrevRegion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsRequest) Reset() { *m = ReportMinResolvedTsRequest{} } +func (m *ReportMinResolvedTsRequest) String() string { return proto.CompactTextString(m) } +func (*ReportMinResolvedTsRequest) ProtoMessage() {} +func (*ReportMinResolvedTsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{126} } - -func (c *pDClient) GetRegionByID(ctx context.Context, in *GetRegionByIDRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { - out := new(GetRegionResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetRegionByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *pDClient) ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts ...grpc.CallOption) (*ScanRegionsResponse, error) { - out := new(ScanRegionsResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/ScanRegions", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportMinResolvedTsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportMinResolvedTsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil } - -func (c *pDClient) BatchScanRegions(ctx context.Context, in *BatchScanRegionsRequest, opts ...grpc.CallOption) (*BatchScanRegionsResponse, error) { - out := new(BatchScanRegionsResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/BatchScanRegions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMinResolvedTsRequest.Merge(m, src) } - -// Deprecated: Do not use. -func (c *pDClient) AskSplit(ctx context.Context, in *AskSplitRequest, opts ...grpc.CallOption) (*AskSplitResponse, error) { - out := new(AskSplitResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/AskSplit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsRequest) XXX_Size() int { + return m.Size() } - -// Deprecated: Do not use. -func (c *pDClient) ReportSplit(ctx context.Context, in *ReportSplitRequest, opts ...grpc.CallOption) (*ReportSplitResponse, error) { - out := new(ReportSplitResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/ReportSplit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReportMinResolvedTsRequest.DiscardUnknown(m) } -func (c *pDClient) AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) { - out := new(AskBatchSplitResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/AskBatchSplit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +var xxx_messageInfo_ReportMinResolvedTsRequest proto.InternalMessageInfo -func (c *pDClient) ReportBatchSplit(ctx context.Context, in *ReportBatchSplitRequest, opts ...grpc.CallOption) (*ReportBatchSplitResponse, error) { - out := new(ReportBatchSplitResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/ReportBatchSplit", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportMinResolvedTsRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header } - return out, nil + return nil } -func (c *pDClient) GetClusterConfig(ctx context.Context, in *GetClusterConfigRequest, opts ...grpc.CallOption) (*GetClusterConfigResponse, error) { - out := new(GetClusterConfigResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetClusterConfig", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportMinResolvedTsRequest) GetStoreId() uint64 { + if m != nil { + return m.StoreId } - return out, nil + return 0 } -func (c *pDClient) PutClusterConfig(ctx context.Context, in *PutClusterConfigRequest, opts ...grpc.CallOption) (*PutClusterConfigResponse, error) { - out := new(PutClusterConfigResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/PutClusterConfig", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportMinResolvedTsRequest) GetMinResolvedTs() uint64 { + if m != nil { + return m.MinResolvedTs } - return out, nil + return 0 } -func (c *pDClient) ScatterRegion(ctx context.Context, in *ScatterRegionRequest, opts ...grpc.CallOption) (*ScatterRegionResponse, error) { - out := new(ScatterRegionResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/ScatterRegion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type ReportMinResolvedTsResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -func (c *pDClient) GetGCSafePoint(ctx context.Context, in *GetGCSafePointRequest, opts ...grpc.CallOption) (*GetGCSafePointResponse, error) { - out := new(GetGCSafePointResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetGCSafePoint", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsResponse) Reset() { *m = ReportMinResolvedTsResponse{} } +func (m *ReportMinResolvedTsResponse) String() string { return proto.CompactTextString(m) } +func (*ReportMinResolvedTsResponse) ProtoMessage() {} +func (*ReportMinResolvedTsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{127} } - -func (c *pDClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointRequest, opts ...grpc.CallOption) (*UpdateGCSafePointResponse, error) { - out := new(UpdateGCSafePointResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePoint", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *pDClient) UpdateServiceGCSafePoint(ctx context.Context, in *UpdateServiceGCSafePointRequest, opts ...grpc.CallOption) (*UpdateServiceGCSafePointResponse, error) { - out := new(UpdateServiceGCSafePointResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateServiceGCSafePoint", in, out, opts...) - if err != nil { - return nil, err +func (m *ReportMinResolvedTsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportMinResolvedTsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil } - -func (c *pDClient) GetGCSafePointV2(ctx context.Context, in *GetGCSafePointV2Request, opts ...grpc.CallOption) (*GetGCSafePointV2Response, error) { - out := new(GetGCSafePointV2Response) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetGCSafePointV2", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *ReportMinResolvedTsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportMinResolvedTsResponse.Merge(m, src) +} +func (m *ReportMinResolvedTsResponse) XXX_Size() int { + return m.Size() +} +func (m *ReportMinResolvedTsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReportMinResolvedTsResponse.DiscardUnknown(m) } -func (c *pDClient) WatchGCSafePointV2(ctx context.Context, in *WatchGCSafePointV2Request, opts ...grpc.CallOption) (PD_WatchGCSafePointV2Client, error) { - stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[2], "/pdpb.PD/WatchGCSafePointV2", opts...) - if err != nil { - return nil, err - } - x := &pDWatchGCSafePointV2Client{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +var xxx_messageInfo_ReportMinResolvedTsResponse proto.InternalMessageInfo + +func (m *ReportMinResolvedTsResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header } - return x, nil + return nil } -type PD_WatchGCSafePointV2Client interface { - Recv() (*WatchGCSafePointV2Response, error) - grpc.ClientStream +type SetExternalTimestampRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -type pDWatchGCSafePointV2Client struct { - grpc.ClientStream +func (m *SetExternalTimestampRequest) Reset() { *m = SetExternalTimestampRequest{} } +func (m *SetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } +func (*SetExternalTimestampRequest) ProtoMessage() {} +func (*SetExternalTimestampRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{128} } - -func (x *pDWatchGCSafePointV2Client) Recv() (*WatchGCSafePointV2Response, error) { - m := new(WatchGCSafePointV2Response) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +func (m *SetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (c *pDClient) UpdateGCSafePointV2(ctx context.Context, in *UpdateGCSafePointV2Request, opts ...grpc.CallOption) (*UpdateGCSafePointV2Response, error) { - out := new(UpdateGCSafePointV2Response) - err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePointV2", in, out, opts...) - if err != nil { - return nil, err +func (m *SetExternalTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetExternalTimestampRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *SetExternalTimestampRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetExternalTimestampRequest.Merge(m, src) +} +func (m *SetExternalTimestampRequest) XXX_Size() int { + return m.Size() +} +func (m *SetExternalTimestampRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetExternalTimestampRequest.DiscardUnknown(m) } -func (c *pDClient) UpdateServiceSafePointV2(ctx context.Context, in *UpdateServiceSafePointV2Request, opts ...grpc.CallOption) (*UpdateServiceSafePointV2Response, error) { - out := new(UpdateServiceSafePointV2Response) - err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateServiceSafePointV2", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_SetExternalTimestampRequest proto.InternalMessageInfo + +func (m *SetExternalTimestampRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header } - return out, nil + return nil } -func (c *pDClient) GetAllGCSafePointV2(ctx context.Context, in *GetAllGCSafePointV2Request, opts ...grpc.CallOption) (*GetAllGCSafePointV2Response, error) { - out := new(GetAllGCSafePointV2Response) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetAllGCSafePointV2", in, out, opts...) - if err != nil { - return nil, err +func (m *SetExternalTimestampRequest) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp } - return out, nil + return 0 } -func (c *pDClient) SyncRegions(ctx context.Context, opts ...grpc.CallOption) (PD_SyncRegionsClient, error) { - stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[3], "/pdpb.PD/SyncRegions", opts...) - if err != nil { - return nil, err - } - x := &pDSyncRegionsClient{stream} - return x, nil -} - -type PD_SyncRegionsClient interface { - Send(*SyncRegionRequest) error - Recv() (*SyncRegionResponse, error) - grpc.ClientStream +type SetExternalTimestampResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -type pDSyncRegionsClient struct { - grpc.ClientStream +func (m *SetExternalTimestampResponse) Reset() { *m = SetExternalTimestampResponse{} } +func (m *SetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } +func (*SetExternalTimestampResponse) ProtoMessage() {} +func (*SetExternalTimestampResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{129} } - -func (x *pDSyncRegionsClient) Send(m *SyncRegionRequest) error { - return x.ClientStream.SendMsg(m) +func (m *SetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (x *pDSyncRegionsClient) Recv() (*SyncRegionResponse, error) { - m := new(SyncRegionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *SetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SetExternalTimestampResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil } - -func (c *pDClient) GetOperator(ctx context.Context, in *GetOperatorRequest, opts ...grpc.CallOption) (*GetOperatorResponse, error) { - out := new(GetOperatorResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetOperator", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *SetExternalTimestampResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetExternalTimestampResponse.Merge(m, src) } - -func (c *pDClient) SyncMaxTS(ctx context.Context, in *SyncMaxTSRequest, opts ...grpc.CallOption) (*SyncMaxTSResponse, error) { - out := new(SyncMaxTSResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/SyncMaxTS", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *SetExternalTimestampResponse) XXX_Size() int { + return m.Size() } - -func (c *pDClient) SplitRegions(ctx context.Context, in *SplitRegionsRequest, opts ...grpc.CallOption) (*SplitRegionsResponse, error) { - out := new(SplitRegionsResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/SplitRegions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *SetExternalTimestampResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetExternalTimestampResponse.DiscardUnknown(m) } -func (c *pDClient) SplitAndScatterRegions(ctx context.Context, in *SplitAndScatterRegionsRequest, opts ...grpc.CallOption) (*SplitAndScatterRegionsResponse, error) { - out := new(SplitAndScatterRegionsResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/SplitAndScatterRegions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +var xxx_messageInfo_SetExternalTimestampResponse proto.InternalMessageInfo -func (c *pDClient) GetDCLocationInfo(ctx context.Context, in *GetDCLocationInfoRequest, opts ...grpc.CallOption) (*GetDCLocationInfoResponse, error) { - out := new(GetDCLocationInfoResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetDCLocationInfo", in, out, opts...) - if err != nil { - return nil, err +func (m *SetExternalTimestampResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header } - return out, nil + return nil } -func (c *pDClient) StoreGlobalConfig(ctx context.Context, in *StoreGlobalConfigRequest, opts ...grpc.CallOption) (*StoreGlobalConfigResponse, error) { - out := new(StoreGlobalConfigResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/StoreGlobalConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type GetExternalTimestampRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -func (c *pDClient) LoadGlobalConfig(ctx context.Context, in *LoadGlobalConfigRequest, opts ...grpc.CallOption) (*LoadGlobalConfigResponse, error) { - out := new(LoadGlobalConfigResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/LoadGlobalConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *GetExternalTimestampRequest) Reset() { *m = GetExternalTimestampRequest{} } +func (m *GetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } +func (*GetExternalTimestampRequest) ProtoMessage() {} +func (*GetExternalTimestampRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{130} } - -func (c *pDClient) WatchGlobalConfig(ctx context.Context, in *WatchGlobalConfigRequest, opts ...grpc.CallOption) (PD_WatchGlobalConfigClient, error) { - stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[4], "/pdpb.PD/WatchGlobalConfig", opts...) - if err != nil { - return nil, err - } - x := &pDWatchGlobalConfigClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (m *GetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetExternalTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetExternalTimestampRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return x, nil } - -type PD_WatchGlobalConfigClient interface { - Recv() (*WatchGlobalConfigResponse, error) - grpc.ClientStream +func (m *GetExternalTimestampRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetExternalTimestampRequest.Merge(m, src) } - -type pDWatchGlobalConfigClient struct { - grpc.ClientStream +func (m *GetExternalTimestampRequest) XXX_Size() int { + return m.Size() } - -func (x *pDWatchGlobalConfigClient) Recv() (*WatchGlobalConfigResponse, error) { - m := new(WatchGlobalConfigResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +func (m *GetExternalTimestampRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetExternalTimestampRequest.DiscardUnknown(m) } -func (c *pDClient) ReportBuckets(ctx context.Context, opts ...grpc.CallOption) (PD_ReportBucketsClient, error) { - stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[5], "/pdpb.PD/ReportBuckets", opts...) - if err != nil { - return nil, err +var xxx_messageInfo_GetExternalTimestampRequest proto.InternalMessageInfo + +func (m *GetExternalTimestampRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header } - x := &pDReportBucketsClient{stream} - return x, nil + return nil } -type PD_ReportBucketsClient interface { - Send(*ReportBucketsRequest) error - CloseAndRecv() (*ReportBucketsResponse, error) - grpc.ClientStream +type GetExternalTimestampResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -type pDReportBucketsClient struct { - grpc.ClientStream +func (m *GetExternalTimestampResponse) Reset() { *m = GetExternalTimestampResponse{} } +func (m *GetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } +func (*GetExternalTimestampResponse) ProtoMessage() {} +func (*GetExternalTimestampResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{131} } - -func (x *pDReportBucketsClient) Send(m *ReportBucketsRequest) error { - return x.ClientStream.SendMsg(m) +func (m *GetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (x *pDReportBucketsClient) CloseAndRecv() (*ReportBucketsResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(ReportBucketsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (m *GetExternalTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetExternalTimestampResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return m, nil } - -func (c *pDClient) ReportMinResolvedTS(ctx context.Context, in *ReportMinResolvedTsRequest, opts ...grpc.CallOption) (*ReportMinResolvedTsResponse, error) { - out := new(ReportMinResolvedTsResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/ReportMinResolvedTS", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (m *GetExternalTimestampResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetExternalTimestampResponse.Merge(m, src) +} +func (m *GetExternalTimestampResponse) XXX_Size() int { + return m.Size() +} +func (m *GetExternalTimestampResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetExternalTimestampResponse.DiscardUnknown(m) } -func (c *pDClient) SetExternalTimestamp(ctx context.Context, in *SetExternalTimestampRequest, opts ...grpc.CallOption) (*SetExternalTimestampResponse, error) { - out := new(SetExternalTimestampResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/SetExternalTimestamp", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_GetExternalTimestampResponse proto.InternalMessageInfo + +func (m *GetExternalTimestampResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header } - return out, nil + return nil } -func (c *pDClient) GetExternalTimestamp(ctx context.Context, in *GetExternalTimestampRequest, opts ...grpc.CallOption) (*GetExternalTimestampResponse, error) { - out := new(GetExternalTimestampResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetExternalTimestamp", in, out, opts...) - if err != nil { - return nil, err +func (m *GetExternalTimestampResponse) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp } - return out, nil + return 0 } -func (c *pDClient) GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...grpc.CallOption) (*GetMinTSResponse, error) { - out := new(GetMinTSResponse) - err := c.cc.Invoke(ctx, "/pdpb.PD/GetMinTS", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type GetMinTSRequest struct { + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` } -// PDServer is the server API for PD service. -type PDServer interface { - // GetClusterInfo get the information of this cluster. It does not require - // the cluster_id in request matchs the id of this cluster. - GetClusterInfo(context.Context, *GetClusterInfoRequest) (*GetClusterInfoResponse, error) - // GetMembers get the member list of this cluster. It does not require - // the cluster_id in request matchs the id of this cluster. - GetMembers(context.Context, *GetMembersRequest) (*GetMembersResponse, error) - Tso(PD_TsoServer) error - Bootstrap(context.Context, *BootstrapRequest) (*BootstrapResponse, error) - IsBootstrapped(context.Context, *IsBootstrappedRequest) (*IsBootstrappedResponse, error) - AllocID(context.Context, *AllocIDRequest) (*AllocIDResponse, error) - IsSnapshotRecovering(context.Context, *IsSnapshotRecoveringRequest) (*IsSnapshotRecoveringResponse, error) - GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error) - PutStore(context.Context, *PutStoreRequest) (*PutStoreResponse, error) - GetAllStores(context.Context, *GetAllStoresRequest) (*GetAllStoresResponse, error) - StoreHeartbeat(context.Context, *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) - RegionHeartbeat(PD_RegionHeartbeatServer) error - GetRegion(context.Context, *GetRegionRequest) (*GetRegionResponse, error) - GetPrevRegion(context.Context, *GetRegionRequest) (*GetRegionResponse, error) - GetRegionByID(context.Context, *GetRegionByIDRequest) (*GetRegionResponse, error) - // Deprecated: use BatchScanRegions instead. - ScanRegions(context.Context, *ScanRegionsRequest) (*ScanRegionsResponse, error) - BatchScanRegions(context.Context, *BatchScanRegionsRequest) (*BatchScanRegionsResponse, error) - AskSplit(context.Context, *AskSplitRequest) (*AskSplitResponse, error) - ReportSplit(context.Context, *ReportSplitRequest) (*ReportSplitResponse, error) - AskBatchSplit(context.Context, *AskBatchSplitRequest) (*AskBatchSplitResponse, error) - ReportBatchSplit(context.Context, *ReportBatchSplitRequest) (*ReportBatchSplitResponse, error) - GetClusterConfig(context.Context, *GetClusterConfigRequest) (*GetClusterConfigResponse, error) - PutClusterConfig(context.Context, *PutClusterConfigRequest) (*PutClusterConfigResponse, error) - ScatterRegion(context.Context, *ScatterRegionRequest) (*ScatterRegionResponse, error) - GetGCSafePoint(context.Context, *GetGCSafePointRequest) (*GetGCSafePointResponse, error) - UpdateGCSafePoint(context.Context, *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) - UpdateServiceGCSafePoint(context.Context, *UpdateServiceGCSafePointRequest) (*UpdateServiceGCSafePointResponse, error) - GetGCSafePointV2(context.Context, *GetGCSafePointV2Request) (*GetGCSafePointV2Response, error) - WatchGCSafePointV2(*WatchGCSafePointV2Request, PD_WatchGCSafePointV2Server) error - UpdateGCSafePointV2(context.Context, *UpdateGCSafePointV2Request) (*UpdateGCSafePointV2Response, error) - UpdateServiceSafePointV2(context.Context, *UpdateServiceSafePointV2Request) (*UpdateServiceSafePointV2Response, error) - GetAllGCSafePointV2(context.Context, *GetAllGCSafePointV2Request) (*GetAllGCSafePointV2Response, error) - SyncRegions(PD_SyncRegionsServer) error - GetOperator(context.Context, *GetOperatorRequest) (*GetOperatorResponse, error) - SyncMaxTS(context.Context, *SyncMaxTSRequest) (*SyncMaxTSResponse, error) - SplitRegions(context.Context, *SplitRegionsRequest) (*SplitRegionsResponse, error) - SplitAndScatterRegions(context.Context, *SplitAndScatterRegionsRequest) (*SplitAndScatterRegionsResponse, error) - GetDCLocationInfo(context.Context, *GetDCLocationInfoRequest) (*GetDCLocationInfoResponse, error) - StoreGlobalConfig(context.Context, *StoreGlobalConfigRequest) (*StoreGlobalConfigResponse, error) - LoadGlobalConfig(context.Context, *LoadGlobalConfigRequest) (*LoadGlobalConfigResponse, error) - WatchGlobalConfig(*WatchGlobalConfigRequest, PD_WatchGlobalConfigServer) error - ReportBuckets(PD_ReportBucketsServer) error - ReportMinResolvedTS(context.Context, *ReportMinResolvedTsRequest) (*ReportMinResolvedTsResponse, error) - SetExternalTimestamp(context.Context, *SetExternalTimestampRequest) (*SetExternalTimestampResponse, error) - GetExternalTimestamp(context.Context, *GetExternalTimestampRequest) (*GetExternalTimestampResponse, error) - // Get the minimum timestamp across all keyspace groups from API server - // TODO: Currently, we need to ask API server to get the minimum timestamp. - // Once we support service discovery, we can remove it. - GetMinTS(context.Context, *GetMinTSRequest) (*GetMinTSResponse, error) -} - -// UnimplementedPDServer can be embedded to have forward compatible implementations. -type UnimplementedPDServer struct { -} - -func (*UnimplementedPDServer) GetClusterInfo(ctx context.Context, req *GetClusterInfoRequest) (*GetClusterInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterInfo not implemented") -} -func (*UnimplementedPDServer) GetMembers(ctx context.Context, req *GetMembersRequest) (*GetMembersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMembers not implemented") -} -func (*UnimplementedPDServer) Tso(srv PD_TsoServer) error { - return status.Errorf(codes.Unimplemented, "method Tso not implemented") -} -func (*UnimplementedPDServer) Bootstrap(ctx context.Context, req *BootstrapRequest) (*BootstrapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Bootstrap not implemented") -} -func (*UnimplementedPDServer) IsBootstrapped(ctx context.Context, req *IsBootstrappedRequest) (*IsBootstrappedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsBootstrapped not implemented") -} -func (*UnimplementedPDServer) AllocID(ctx context.Context, req *AllocIDRequest) (*AllocIDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AllocID not implemented") -} -func (*UnimplementedPDServer) IsSnapshotRecovering(ctx context.Context, req *IsSnapshotRecoveringRequest) (*IsSnapshotRecoveringResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsSnapshotRecovering not implemented") -} -func (*UnimplementedPDServer) GetStore(ctx context.Context, req *GetStoreRequest) (*GetStoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStore not implemented") -} -func (*UnimplementedPDServer) PutStore(ctx context.Context, req *PutStoreRequest) (*PutStoreResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PutStore not implemented") -} -func (*UnimplementedPDServer) GetAllStores(ctx context.Context, req *GetAllStoresRequest) (*GetAllStoresResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllStores not implemented") -} -func (*UnimplementedPDServer) StoreHeartbeat(ctx context.Context, req *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StoreHeartbeat not implemented") -} -func (*UnimplementedPDServer) RegionHeartbeat(srv PD_RegionHeartbeatServer) error { - return status.Errorf(codes.Unimplemented, "method RegionHeartbeat not implemented") -} -func (*UnimplementedPDServer) GetRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegion not implemented") -} -func (*UnimplementedPDServer) GetPrevRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPrevRegion not implemented") -} -func (*UnimplementedPDServer) GetRegionByID(ctx context.Context, req *GetRegionByIDRequest) (*GetRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRegionByID not implemented") -} -func (*UnimplementedPDServer) ScanRegions(ctx context.Context, req *ScanRegionsRequest) (*ScanRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScanRegions not implemented") -} -func (*UnimplementedPDServer) BatchScanRegions(ctx context.Context, req *BatchScanRegionsRequest) (*BatchScanRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BatchScanRegions not implemented") -} -func (*UnimplementedPDServer) AskSplit(ctx context.Context, req *AskSplitRequest) (*AskSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AskSplit not implemented") -} -func (*UnimplementedPDServer) ReportSplit(ctx context.Context, req *ReportSplitRequest) (*ReportSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportSplit not implemented") -} -func (*UnimplementedPDServer) AskBatchSplit(ctx context.Context, req *AskBatchSplitRequest) (*AskBatchSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AskBatchSplit not implemented") -} -func (*UnimplementedPDServer) ReportBatchSplit(ctx context.Context, req *ReportBatchSplitRequest) (*ReportBatchSplitResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportBatchSplit not implemented") -} -func (*UnimplementedPDServer) GetClusterConfig(ctx context.Context, req *GetClusterConfigRequest) (*GetClusterConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClusterConfig not implemented") -} -func (*UnimplementedPDServer) PutClusterConfig(ctx context.Context, req *PutClusterConfigRequest) (*PutClusterConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PutClusterConfig not implemented") -} -func (*UnimplementedPDServer) ScatterRegion(ctx context.Context, req *ScatterRegionRequest) (*ScatterRegionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ScatterRegion not implemented") -} -func (*UnimplementedPDServer) GetGCSafePoint(ctx context.Context, req *GetGCSafePointRequest) (*GetGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePoint not implemented") -} -func (*UnimplementedPDServer) UpdateGCSafePoint(ctx context.Context, req *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePoint not implemented") -} -func (*UnimplementedPDServer) UpdateServiceGCSafePoint(ctx context.Context, req *UpdateServiceGCSafePointRequest) (*UpdateServiceGCSafePointResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceGCSafePoint not implemented") -} -func (*UnimplementedPDServer) GetGCSafePointV2(ctx context.Context, req *GetGCSafePointV2Request) (*GetGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) WatchGCSafePointV2(req *WatchGCSafePointV2Request, srv PD_WatchGCSafePointV2Server) error { - return status.Errorf(codes.Unimplemented, "method WatchGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) UpdateGCSafePointV2(ctx context.Context, req *UpdateGCSafePointV2Request) (*UpdateGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePointV2 not implemented") -} -func (*UnimplementedPDServer) UpdateServiceSafePointV2(ctx context.Context, req *UpdateServiceSafePointV2Request) (*UpdateServiceSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceSafePointV2 not implemented") -} -func (*UnimplementedPDServer) GetAllGCSafePointV2(ctx context.Context, req *GetAllGCSafePointV2Request) (*GetAllGCSafePointV2Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllGCSafePointV2 not implemented") +func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } +func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } +func (*GetMinTSRequest) ProtoMessage() {} +func (*GetMinTSRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{132} } -func (*UnimplementedPDServer) SyncRegions(srv PD_SyncRegionsServer) error { - return status.Errorf(codes.Unimplemented, "method SyncRegions not implemented") +func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedPDServer) GetOperator(ctx context.Context, req *GetOperatorRequest) (*GetOperatorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOperator not implemented") +func (m *GetMinTSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMinTSRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedPDServer) SyncMaxTS(ctx context.Context, req *SyncMaxTSRequest) (*SyncMaxTSResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SyncMaxTS not implemented") +func (m *GetMinTSRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSRequest.Merge(m, src) } -func (*UnimplementedPDServer) SplitRegions(ctx context.Context, req *SplitRegionsRequest) (*SplitRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SplitRegions not implemented") +func (m *GetMinTSRequest) XXX_Size() int { + return m.Size() } -func (*UnimplementedPDServer) SplitAndScatterRegions(ctx context.Context, req *SplitAndScatterRegionsRequest) (*SplitAndScatterRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SplitAndScatterRegions not implemented") +func (m *GetMinTSRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinTSRequest.DiscardUnknown(m) } -func (*UnimplementedPDServer) GetDCLocationInfo(ctx context.Context, req *GetDCLocationInfoRequest) (*GetDCLocationInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDCLocationInfo not implemented") + +var xxx_messageInfo_GetMinTSRequest proto.InternalMessageInfo + +func (m *GetMinTSRequest) GetHeader() *RequestHeader { + if m != nil { + return m.Header + } + return nil } -func (*UnimplementedPDServer) StoreGlobalConfig(ctx context.Context, req *StoreGlobalConfigRequest) (*StoreGlobalConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StoreGlobalConfig not implemented") + +type GetMinTSResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Timestamp *Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -func (*UnimplementedPDServer) LoadGlobalConfig(ctx context.Context, req *LoadGlobalConfigRequest) (*LoadGlobalConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadGlobalConfig not implemented") + +func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } +func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } +func (*GetMinTSResponse) ProtoMessage() {} +func (*GetMinTSResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{133} } -func (*UnimplementedPDServer) WatchGlobalConfig(req *WatchGlobalConfigRequest, srv PD_WatchGlobalConfigServer) error { - return status.Errorf(codes.Unimplemented, "method WatchGlobalConfig not implemented") +func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedPDServer) ReportBuckets(srv PD_ReportBucketsServer) error { - return status.Errorf(codes.Unimplemented, "method ReportBuckets not implemented") +func (m *GetMinTSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetMinTSResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedPDServer) ReportMinResolvedTS(ctx context.Context, req *ReportMinResolvedTsRequest) (*ReportMinResolvedTsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReportMinResolvedTS not implemented") +func (m *GetMinTSResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetMinTSResponse.Merge(m, src) } -func (*UnimplementedPDServer) SetExternalTimestamp(ctx context.Context, req *SetExternalTimestampRequest) (*SetExternalTimestampResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetExternalTimestamp not implemented") +func (m *GetMinTSResponse) XXX_Size() int { + return m.Size() } -func (*UnimplementedPDServer) GetExternalTimestamp(ctx context.Context, req *GetExternalTimestampRequest) (*GetExternalTimestampResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExternalTimestamp not implemented") +func (m *GetMinTSResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetMinTSResponse.DiscardUnknown(m) } -func (*UnimplementedPDServer) GetMinTS(ctx context.Context, req *GetMinTSRequest) (*GetMinTSResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMinTS not implemented") + +var xxx_messageInfo_GetMinTSResponse proto.InternalMessageInfo + +func (m *GetMinTSResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil } -func RegisterPDServer(s *grpc.Server, srv PDServer) { - s.RegisterService(&_PD_serviceDesc, srv) +func (m *GetMinTSResponse) GetTimestamp() *Timestamp { + if m != nil { + return m.Timestamp + } + return nil } -func _PD_GetClusterInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetClusterInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PDServer).GetClusterInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetClusterInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetClusterInfo(ctx, req.(*GetClusterInfoRequest)) - } - return interceptor(ctx, in, info, handler) +func init() { + proto.RegisterEnum("pdpb.EventType", EventType_name, EventType_value) + proto.RegisterEnum("pdpb.ErrorType", ErrorType_name, ErrorType_value) + proto.RegisterEnum("pdpb.ServiceMode", ServiceMode_name, ServiceMode_value) + proto.RegisterEnum("pdpb.CheckPolicy", CheckPolicy_name, CheckPolicy_value) + proto.RegisterEnum("pdpb.ControlGrpcEvent", ControlGrpcEvent_name, ControlGrpcEvent_value) + proto.RegisterEnum("pdpb.OperatorStatus", OperatorStatus_name, OperatorStatus_value) + proto.RegisterEnum("pdpb.QueryKind", QueryKind_name, QueryKind_value) + proto.RegisterType((*WatchGlobalConfigRequest)(nil), "pdpb.WatchGlobalConfigRequest") + proto.RegisterType((*WatchGlobalConfigResponse)(nil), "pdpb.WatchGlobalConfigResponse") + proto.RegisterType((*StoreGlobalConfigRequest)(nil), "pdpb.StoreGlobalConfigRequest") + proto.RegisterType((*StoreGlobalConfigResponse)(nil), "pdpb.StoreGlobalConfigResponse") + proto.RegisterType((*LoadGlobalConfigRequest)(nil), "pdpb.LoadGlobalConfigRequest") + proto.RegisterType((*LoadGlobalConfigResponse)(nil), "pdpb.LoadGlobalConfigResponse") + proto.RegisterType((*GlobalConfigItem)(nil), "pdpb.GlobalConfigItem") + proto.RegisterType((*RequestHeader)(nil), "pdpb.RequestHeader") + proto.RegisterType((*ResponseHeader)(nil), "pdpb.ResponseHeader") + proto.RegisterType((*Error)(nil), "pdpb.Error") + proto.RegisterType((*TsoRequest)(nil), "pdpb.TsoRequest") + proto.RegisterType((*Timestamp)(nil), "pdpb.Timestamp") + proto.RegisterType((*TsoResponse)(nil), "pdpb.TsoResponse") + proto.RegisterType((*BootstrapRequest)(nil), "pdpb.BootstrapRequest") + proto.RegisterType((*BootstrapResponse)(nil), "pdpb.BootstrapResponse") + proto.RegisterType((*IsBootstrappedRequest)(nil), "pdpb.IsBootstrappedRequest") + proto.RegisterType((*IsBootstrappedResponse)(nil), "pdpb.IsBootstrappedResponse") + proto.RegisterType((*AllocIDRequest)(nil), "pdpb.AllocIDRequest") + proto.RegisterType((*AllocIDResponse)(nil), "pdpb.AllocIDResponse") + proto.RegisterType((*IsSnapshotRecoveringRequest)(nil), "pdpb.IsSnapshotRecoveringRequest") + proto.RegisterType((*IsSnapshotRecoveringResponse)(nil), "pdpb.IsSnapshotRecoveringResponse") + proto.RegisterType((*GetStoreRequest)(nil), "pdpb.GetStoreRequest") + proto.RegisterType((*GetStoreResponse)(nil), "pdpb.GetStoreResponse") + proto.RegisterType((*PutStoreRequest)(nil), "pdpb.PutStoreRequest") + proto.RegisterType((*PutStoreResponse)(nil), "pdpb.PutStoreResponse") + proto.RegisterType((*GetAllStoresRequest)(nil), "pdpb.GetAllStoresRequest") + proto.RegisterType((*GetAllStoresResponse)(nil), "pdpb.GetAllStoresResponse") + proto.RegisterType((*GetRegionRequest)(nil), "pdpb.GetRegionRequest") + proto.RegisterType((*GetRegionResponse)(nil), "pdpb.GetRegionResponse") + proto.RegisterType((*GetRegionByIDRequest)(nil), "pdpb.GetRegionByIDRequest") + proto.RegisterType((*ScanRegionsRequest)(nil), "pdpb.ScanRegionsRequest") + proto.RegisterType((*Region)(nil), "pdpb.Region") + proto.RegisterType((*ScanRegionsResponse)(nil), "pdpb.ScanRegionsResponse") + proto.RegisterType((*KeyRange)(nil), "pdpb.KeyRange") + proto.RegisterType((*BatchScanRegionsRequest)(nil), "pdpb.BatchScanRegionsRequest") + proto.RegisterType((*BatchScanRegionsResponse)(nil), "pdpb.BatchScanRegionsResponse") + proto.RegisterType((*GetClusterConfigRequest)(nil), "pdpb.GetClusterConfigRequest") + proto.RegisterType((*GetClusterConfigResponse)(nil), "pdpb.GetClusterConfigResponse") + proto.RegisterType((*PutClusterConfigRequest)(nil), "pdpb.PutClusterConfigRequest") + proto.RegisterType((*PutClusterConfigResponse)(nil), "pdpb.PutClusterConfigResponse") + proto.RegisterType((*Member)(nil), "pdpb.Member") + proto.RegisterType((*GetMembersRequest)(nil), "pdpb.GetMembersRequest") + proto.RegisterType((*GetMembersResponse)(nil), "pdpb.GetMembersResponse") + proto.RegisterMapType((map[string]*Member)(nil), "pdpb.GetMembersResponse.TsoAllocatorLeadersEntry") + proto.RegisterType((*GetClusterInfoRequest)(nil), "pdpb.GetClusterInfoRequest") + proto.RegisterType((*GetClusterInfoResponse)(nil), "pdpb.GetClusterInfoResponse") + proto.RegisterType((*PeerStats)(nil), "pdpb.PeerStats") + proto.RegisterType((*RegionHeartbeatRequest)(nil), "pdpb.RegionHeartbeatRequest") + proto.RegisterType((*ChangePeer)(nil), "pdpb.ChangePeer") + proto.RegisterType((*ChangePeerV2)(nil), "pdpb.ChangePeerV2") + proto.RegisterType((*TransferLeader)(nil), "pdpb.TransferLeader") + proto.RegisterType((*Merge)(nil), "pdpb.Merge") + proto.RegisterType((*SplitRegion)(nil), "pdpb.SplitRegion") + proto.RegisterType((*SwitchWitness)(nil), "pdpb.SwitchWitness") + proto.RegisterType((*BatchSwitchWitness)(nil), "pdpb.BatchSwitchWitness") + proto.RegisterType((*RegionHeartbeatResponse)(nil), "pdpb.RegionHeartbeatResponse") + proto.RegisterType((*AskSplitRequest)(nil), "pdpb.AskSplitRequest") + proto.RegisterType((*AskSplitResponse)(nil), "pdpb.AskSplitResponse") + proto.RegisterType((*ReportSplitRequest)(nil), "pdpb.ReportSplitRequest") + proto.RegisterType((*ReportSplitResponse)(nil), "pdpb.ReportSplitResponse") + proto.RegisterType((*AskBatchSplitRequest)(nil), "pdpb.AskBatchSplitRequest") + proto.RegisterType((*SplitID)(nil), "pdpb.SplitID") + proto.RegisterType((*AskBatchSplitResponse)(nil), "pdpb.AskBatchSplitResponse") + proto.RegisterType((*ReportBatchSplitRequest)(nil), "pdpb.ReportBatchSplitRequest") + proto.RegisterType((*ReportBatchSplitResponse)(nil), "pdpb.ReportBatchSplitResponse") + proto.RegisterType((*TimeInterval)(nil), "pdpb.TimeInterval") + proto.RegisterType((*RecordPair)(nil), "pdpb.RecordPair") + proto.RegisterType((*PeerStat)(nil), "pdpb.PeerStat") + proto.RegisterType((*StoreStats)(nil), "pdpb.StoreStats") + proto.RegisterType((*SlowTrend)(nil), "pdpb.SlowTrend") + proto.RegisterType((*SnapshotStat)(nil), "pdpb.SnapshotStat") + proto.RegisterType((*PeerReport)(nil), "pdpb.PeerReport") + proto.RegisterType((*StoreReport)(nil), "pdpb.StoreReport") + proto.RegisterType((*StoreHeartbeatRequest)(nil), "pdpb.StoreHeartbeatRequest") + proto.RegisterType((*DemoteFailedVoters)(nil), "pdpb.DemoteFailedVoters") + proto.RegisterType((*ForceLeader)(nil), "pdpb.ForceLeader") + proto.RegisterType((*RecoveryPlan)(nil), "pdpb.RecoveryPlan") + proto.RegisterType((*AwakenRegions)(nil), "pdpb.AwakenRegions") + proto.RegisterType((*ControlGrpc)(nil), "pdpb.ControlGrpc") + proto.RegisterType((*StoreHeartbeatResponse)(nil), "pdpb.StoreHeartbeatResponse") + proto.RegisterType((*ScatterRegionRequest)(nil), "pdpb.ScatterRegionRequest") + proto.RegisterType((*ScatterRegionResponse)(nil), "pdpb.ScatterRegionResponse") + proto.RegisterType((*GetGCSafePointRequest)(nil), "pdpb.GetGCSafePointRequest") + proto.RegisterType((*GetGCSafePointResponse)(nil), "pdpb.GetGCSafePointResponse") + proto.RegisterType((*UpdateGCSafePointRequest)(nil), "pdpb.UpdateGCSafePointRequest") + proto.RegisterType((*UpdateGCSafePointResponse)(nil), "pdpb.UpdateGCSafePointResponse") + proto.RegisterType((*UpdateServiceGCSafePointRequest)(nil), "pdpb.UpdateServiceGCSafePointRequest") + proto.RegisterType((*UpdateServiceGCSafePointResponse)(nil), "pdpb.UpdateServiceGCSafePointResponse") + proto.RegisterType((*GetGCSafePointV2Request)(nil), "pdpb.GetGCSafePointV2Request") + proto.RegisterType((*GetGCSafePointV2Response)(nil), "pdpb.GetGCSafePointV2Response") + proto.RegisterType((*WatchGCSafePointV2Request)(nil), "pdpb.WatchGCSafePointV2Request") + proto.RegisterType((*SafePointEvent)(nil), "pdpb.SafePointEvent") + proto.RegisterType((*WatchGCSafePointV2Response)(nil), "pdpb.WatchGCSafePointV2Response") + proto.RegisterType((*UpdateGCSafePointV2Request)(nil), "pdpb.UpdateGCSafePointV2Request") + proto.RegisterType((*UpdateGCSafePointV2Response)(nil), "pdpb.UpdateGCSafePointV2Response") + proto.RegisterType((*UpdateServiceSafePointV2Request)(nil), "pdpb.UpdateServiceSafePointV2Request") + proto.RegisterType((*UpdateServiceSafePointV2Response)(nil), "pdpb.UpdateServiceSafePointV2Response") + proto.RegisterType((*GetAllGCSafePointV2Request)(nil), "pdpb.GetAllGCSafePointV2Request") + proto.RegisterType((*GCSafePointV2)(nil), "pdpb.GCSafePointV2") + proto.RegisterType((*GetAllGCSafePointV2Response)(nil), "pdpb.GetAllGCSafePointV2Response") + proto.RegisterType((*UpdateTxnSafePointRequest)(nil), "pdpb.UpdateTxnSafePointRequest") + proto.RegisterType((*UpdateTxnSafePointResponse)(nil), "pdpb.UpdateTxnSafePointResponse") + proto.RegisterType((*SetGCBarrierRequest)(nil), "pdpb.SetGCBarrierRequest") + proto.RegisterType((*GCBarrierInfo)(nil), "pdpb.GCBarrierInfo") + proto.RegisterType((*SetGCBarrierResponse)(nil), "pdpb.SetGCBarrierResponse") + proto.RegisterType((*DeleteGCBarrierRequest)(nil), "pdpb.DeleteGCBarrierRequest") + proto.RegisterType((*DeleteGCBarrierResponse)(nil), "pdpb.DeleteGCBarrierResponse") + proto.RegisterType((*GetGCStateRequest)(nil), "pdpb.GetGCStateRequest") + proto.RegisterType((*GetGCStateResponse)(nil), "pdpb.GetGCStateResponse") + proto.RegisterType((*RegionStat)(nil), "pdpb.RegionStat") + proto.RegisterType((*SyncRegionRequest)(nil), "pdpb.SyncRegionRequest") + proto.RegisterType((*PeersStats)(nil), "pdpb.PeersStats") + proto.RegisterType((*Peers)(nil), "pdpb.Peers") + proto.RegisterType((*SyncRegionResponse)(nil), "pdpb.SyncRegionResponse") + proto.RegisterType((*GetOperatorRequest)(nil), "pdpb.GetOperatorRequest") + proto.RegisterType((*GetOperatorResponse)(nil), "pdpb.GetOperatorResponse") + proto.RegisterType((*SyncMaxTSRequest)(nil), "pdpb.SyncMaxTSRequest") + proto.RegisterType((*SyncMaxTSResponse)(nil), "pdpb.SyncMaxTSResponse") + proto.RegisterType((*SplitRegionsRequest)(nil), "pdpb.SplitRegionsRequest") + proto.RegisterType((*SplitRegionsResponse)(nil), "pdpb.SplitRegionsResponse") + proto.RegisterType((*SplitAndScatterRegionsRequest)(nil), "pdpb.SplitAndScatterRegionsRequest") + proto.RegisterType((*SplitAndScatterRegionsResponse)(nil), "pdpb.SplitAndScatterRegionsResponse") + proto.RegisterType((*GetDCLocationInfoRequest)(nil), "pdpb.GetDCLocationInfoRequest") + proto.RegisterType((*GetDCLocationInfoResponse)(nil), "pdpb.GetDCLocationInfoResponse") + proto.RegisterType((*QueryStats)(nil), "pdpb.QueryStats") + proto.RegisterType((*ReportBucketsRequest)(nil), "pdpb.ReportBucketsRequest") + proto.RegisterType((*ReportBucketsResponse)(nil), "pdpb.ReportBucketsResponse") + proto.RegisterType((*ReportMinResolvedTsRequest)(nil), "pdpb.ReportMinResolvedTsRequest") + proto.RegisterType((*ReportMinResolvedTsResponse)(nil), "pdpb.ReportMinResolvedTsResponse") + proto.RegisterType((*SetExternalTimestampRequest)(nil), "pdpb.SetExternalTimestampRequest") + proto.RegisterType((*SetExternalTimestampResponse)(nil), "pdpb.SetExternalTimestampResponse") + proto.RegisterType((*GetExternalTimestampRequest)(nil), "pdpb.GetExternalTimestampRequest") + proto.RegisterType((*GetExternalTimestampResponse)(nil), "pdpb.GetExternalTimestampResponse") + proto.RegisterType((*GetMinTSRequest)(nil), "pdpb.GetMinTSRequest") + proto.RegisterType((*GetMinTSResponse)(nil), "pdpb.GetMinTSResponse") } -func _PD_GetMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetMembersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PDServer).GetMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetMembers(ctx, req.(*GetMembersRequest)) - } - return interceptor(ctx, in, info, handler) -} +func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_78b27e6f04f44c6e) } -func _PD_Tso_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).Tso(&pDTsoServer{stream}) +var fileDescriptor_78b27e6f04f44c6e = []byte{ + // 6711 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x7d, 0xcd, 0x73, 0x23, 0xc7, + 0x75, 0x38, 0x07, 0x00, 0x49, 0xe0, 0xe1, 0x83, 0x60, 0x2f, 0x77, 0x89, 0xc5, 0x7e, 0x6a, 0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, 0x2e, 0xd0, 0x6b, + 0xb0, 0x68, 0x07, 0x78, 0x78, 0x5e, 0xf3, 0x19, 0xd1, 0x5c, 0x03, 0xf8, 0xa1, 0x02, 0xf5, 0x78, + 0x39, 0x84, 0xa0, 0x40, 0x84, 0xe4, 0xb6, 0x44, 0x7f, 0x93, 0x56, 0x9c, 0x1a, 0x83, 0x31, 0xe6, + 0x92, 0xb2, 0x8f, 0xa9, 0x66, 0xf2, 0xb3, 0x34, 0x83, 0x6e, 0x41, 0xe1, 0xc4, 0x76, 0xac, 0x46, + 0xe1, 0xa6, 0x72, 0xbb, 0x76, 0x6f, 0x85, 0x53, 0x9c, 0x62, 0x27, 0xe8, 0x4f, 0x46, 0x58, 0xa3, + 0x48, 0xd4, 0x80, 0xe5, 0x91, 0x31, 0x19, 0xb8, 0x86, 0xd5, 0x58, 0xbc, 0xa9, 0xdc, 0xae, 0x68, + 0xe2, 0x53, 0xfd, 0xbe, 0x02, 0x55, 0xae, 0x49, 0x66, 0x21, 0xe8, 0x1a, 0x80, 0x39, 0x18, 0xfb, + 0x01, 0xf6, 0x74, 0xdb, 0xa2, 0x32, 0x16, 0xb4, 0x12, 0x87, 0x74, 0x2c, 0x74, 0x05, 0x4a, 0x3e, + 0x76, 0x2c, 0x86, 0xcd, 0x51, 0x6c, 0x91, 0x01, 0x18, 0xd2, 0x34, 0x06, 0x03, 0x86, 0xcc, 0xd3, + 0x96, 0x14, 0x19, 0xa0, 0x63, 0xa1, 0x57, 0xa0, 0xce, 0x91, 0xa6, 0x3b, 0x1c, 0xb9, 0x0e, 0x76, + 0x02, 0x2a, 0x75, 0x49, 0x5b, 0x61, 0xf0, 0x4d, 0x01, 0x56, 0x35, 0xa8, 0x45, 0xed, 0xf6, 0x3c, + 0xa9, 0x42, 0x45, 0xe5, 0x66, 0x9a, 0xd0, 0x7d, 0x58, 0x6c, 0x0b, 0x8d, 0x05, 0x93, 0x11, 0x53, + 0xff, 0x54, 0x63, 0x04, 0xc5, 0x34, 0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, + 0x55, 0x80, 0x78, 0x8b, 0x66, 0xe5, 0x60, 0x35, 0x6f, 0xcc, 0xc4, 0x87, 0x7c, 0x4f, 0x44, 0x0a, + 0x57, 0x32, 0x51, 0x08, 0xbd, 0x24, 0x17, 0x9f, 0x99, 0xe9, 0xd4, 0x7c, 0xf9, 0x3c, 0xb2, 0x98, + 0x25, 0x44, 0xcf, 0xbc, 0xaf, 0xa5, 0x35, 0x3c, 0x3c, 0x50, 0x97, 0x2c, 0x21, 0xf5, 0x34, 0x5b, + 0x5d, 0x40, 0xbf, 0x06, 0x28, 0x99, 0x91, 0x82, 0x78, 0xd3, 0x67, 0x66, 0xe2, 0x34, 0x6f, 0xce, + 0x26, 0x10, 0xac, 0xdf, 0x54, 0xd0, 0x57, 0xe0, 0x42, 0x4a, 0x32, 0x07, 0xba, 0x39, 0x43, 0xb1, + 0x53, 0xf6, 0x2f, 0xcc, 0xa1, 0x98, 0xa9, 0x7c, 0xb9, 0x8a, 0x34, 0xe5, 0xa7, 0xd4, 0xf3, 0xf2, + 0x79, 0x64, 0x61, 0x65, 0x5f, 0x11, 0x4f, 0xec, 0xa5, 0x36, 0x65, 0x76, 0x4e, 0x83, 0x68, 0xca, + 0x9c, 0x9c, 0x02, 0x75, 0x01, 0x7d, 0x0c, 0x28, 0x79, 0x98, 0x8e, 0x22, 0x06, 0x98, 0x72, 0xd2, + 0xdf, 0xbc, 0x39, 0x9b, 0x40, 0x9e, 0xbe, 0xe5, 0x83, 0x5f, 0x31, 0x7d, 0xa7, 0x9c, 0xa0, 0x8b, + 0xe9, 0x3b, 0xed, 0x9c, 0x58, 0x5d, 0x40, 0x5d, 0x58, 0x89, 0x9d, 0x99, 0x8a, 0xf9, 0x36, 0xfd, + 0x48, 0x57, 0xcc, 0xb7, 0x33, 0x0e, 0x5a, 0xc3, 0x25, 0x27, 0x3f, 0x91, 0x94, 0x96, 0x9c, 0xd1, + 0x73, 0x50, 0x69, 0xc9, 0x19, 0x3b, 0xbc, 0xa4,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xcd, 0x09, 0xee, 0xb1, + 0x0d, 0x50, 0x5a, 0x18, 0x4d, 0x6c, 0x80, 0xe6, 0x04, 0xf3, 0xc4, 0x06, 0x68, 0x5e, 0x14, 0x8e, + 0x55, 0xb0, 0x3d, 0xa7, 0x82, 0xed, 0xf3, 0x2b, 0xd8, 0x9e, 0x5f, 0x01, 0xdb, 0x61, 0xd1, 0x10, + 0x96, 0xb4, 0xc3, 0x92, 0x43, 0x62, 0xd2, 0x0e, 0x2b, 0x12, 0xe9, 0x52, 0x17, 0x36, 0xee, 0xfd, + 0xe4, 0x6f, 0x8a, 0xca, 0xbf, 0xfe, 0xec, 0xba, 0xf2, 0xe3, 0x9f, 0x5d, 0x57, 0x7e, 0xfa, 0xb3, + 0xeb, 0xca, 0xf7, 0x3e, 0xbd, 0xbe, 0xf0, 0x83, 0x4f, 0xaf, 0x2f, 0xfc, 0xf8, 0xd3, 0xeb, 0x0b, + 0x3f, 0xf9, 0xf4, 0xfa, 0x02, 0xd4, 0x5d, 0xef, 0xe8, 0x6e, 0x60, 0x9f, 0x9c, 0xde, 0x3d, 0x39, + 0xa5, 0xff, 0x41, 0xe0, 0x60, 0x89, 0xfe, 0x79, 0xfb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf9, + 0xed, 0x20, 0xc7, 0xcf, 0x60, 0x00, 0x00, } -type PD_TsoServer interface { - Send(*TsoResponse) error - Recv() (*TsoRequest, error) - grpc.ServerStream +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// PDClient is the client API for PD service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type PDClient interface { + // GetClusterInfo get the information of this cluster. It does not require + // the cluster_id in request matchs the id of this cluster. + GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) + // GetMembers get the member list of this cluster. It does not require + // the cluster_id in request matchs the id of this cluster. + GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error) + Tso(ctx context.Context, opts ...grpc.CallOption) (PD_TsoClient, error) + Bootstrap(ctx context.Context, in *BootstrapRequest, opts ...grpc.CallOption) (*BootstrapResponse, error) + IsBootstrapped(ctx context.Context, in *IsBootstrappedRequest, opts ...grpc.CallOption) (*IsBootstrappedResponse, error) + AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc.CallOption) (*AllocIDResponse, error) + IsSnapshotRecovering(ctx context.Context, in *IsSnapshotRecoveringRequest, opts ...grpc.CallOption) (*IsSnapshotRecoveringResponse, error) + GetStore(ctx context.Context, in *GetStoreRequest, opts ...grpc.CallOption) (*GetStoreResponse, error) + PutStore(ctx context.Context, in *PutStoreRequest, opts ...grpc.CallOption) (*PutStoreResponse, error) + GetAllStores(ctx context.Context, in *GetAllStoresRequest, opts ...grpc.CallOption) (*GetAllStoresResponse, error) + StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) + RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (PD_RegionHeartbeatClient, error) + GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) + GetPrevRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) + GetRegionByID(ctx context.Context, in *GetRegionByIDRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) + // Deprecated: use BatchScanRegions instead. + ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts ...grpc.CallOption) (*ScanRegionsResponse, error) + BatchScanRegions(ctx context.Context, in *BatchScanRegionsRequest, opts ...grpc.CallOption) (*BatchScanRegionsResponse, error) + AskSplit(ctx context.Context, in *AskSplitRequest, opts ...grpc.CallOption) (*AskSplitResponse, error) + ReportSplit(ctx context.Context, in *ReportSplitRequest, opts ...grpc.CallOption) (*ReportSplitResponse, error) + AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) + ReportBatchSplit(ctx context.Context, in *ReportBatchSplitRequest, opts ...grpc.CallOption) (*ReportBatchSplitResponse, error) + GetClusterConfig(ctx context.Context, in *GetClusterConfigRequest, opts ...grpc.CallOption) (*GetClusterConfigResponse, error) + PutClusterConfig(ctx context.Context, in *PutClusterConfigRequest, opts ...grpc.CallOption) (*PutClusterConfigResponse, error) + ScatterRegion(ctx context.Context, in *ScatterRegionRequest, opts ...grpc.CallOption) (*ScatterRegionResponse, error) + GetGCSafePoint(ctx context.Context, in *GetGCSafePointRequest, opts ...grpc.CallOption) (*GetGCSafePointResponse, error) + UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointRequest, opts ...grpc.CallOption) (*UpdateGCSafePointResponse, error) + UpdateServiceGCSafePoint(ctx context.Context, in *UpdateServiceGCSafePointRequest, opts ...grpc.CallOption) (*UpdateServiceGCSafePointResponse, error) + GetGCSafePointV2(ctx context.Context, in *GetGCSafePointV2Request, opts ...grpc.CallOption) (*GetGCSafePointV2Response, error) + WatchGCSafePointV2(ctx context.Context, in *WatchGCSafePointV2Request, opts ...grpc.CallOption) (PD_WatchGCSafePointV2Client, error) + UpdateGCSafePointV2(ctx context.Context, in *UpdateGCSafePointV2Request, opts ...grpc.CallOption) (*UpdateGCSafePointV2Response, error) + UpdateServiceSafePointV2(ctx context.Context, in *UpdateServiceSafePointV2Request, opts ...grpc.CallOption) (*UpdateServiceSafePointV2Response, error) + GetAllGCSafePointV2(ctx context.Context, in *GetAllGCSafePointV2Request, opts ...grpc.CallOption) (*GetAllGCSafePointV2Response, error) + UpdateTxnSafePoint(ctx context.Context, in *UpdateTxnSafePointRequest, opts ...grpc.CallOption) (*UpdateTxnSafePointResponse, error) + SetGCBarrier(ctx context.Context, in *SetGCBarrierRequest, opts ...grpc.CallOption) (*SetGCBarrierResponse, error) + DeleteGCBarrier(ctx context.Context, in *DeleteGCBarrierRequest, opts ...grpc.CallOption) (*DeleteGCBarrierResponse, error) + GetGCState(ctx context.Context, in *GetGCStateRequest, opts ...grpc.CallOption) (*GetGCStateResponse, error) + SyncRegions(ctx context.Context, opts ...grpc.CallOption) (PD_SyncRegionsClient, error) + GetOperator(ctx context.Context, in *GetOperatorRequest, opts ...grpc.CallOption) (*GetOperatorResponse, error) + SyncMaxTS(ctx context.Context, in *SyncMaxTSRequest, opts ...grpc.CallOption) (*SyncMaxTSResponse, error) + SplitRegions(ctx context.Context, in *SplitRegionsRequest, opts ...grpc.CallOption) (*SplitRegionsResponse, error) + SplitAndScatterRegions(ctx context.Context, in *SplitAndScatterRegionsRequest, opts ...grpc.CallOption) (*SplitAndScatterRegionsResponse, error) + GetDCLocationInfo(ctx context.Context, in *GetDCLocationInfoRequest, opts ...grpc.CallOption) (*GetDCLocationInfoResponse, error) + StoreGlobalConfig(ctx context.Context, in *StoreGlobalConfigRequest, opts ...grpc.CallOption) (*StoreGlobalConfigResponse, error) + LoadGlobalConfig(ctx context.Context, in *LoadGlobalConfigRequest, opts ...grpc.CallOption) (*LoadGlobalConfigResponse, error) + WatchGlobalConfig(ctx context.Context, in *WatchGlobalConfigRequest, opts ...grpc.CallOption) (PD_WatchGlobalConfigClient, error) + ReportBuckets(ctx context.Context, opts ...grpc.CallOption) (PD_ReportBucketsClient, error) + ReportMinResolvedTS(ctx context.Context, in *ReportMinResolvedTsRequest, opts ...grpc.CallOption) (*ReportMinResolvedTsResponse, error) + SetExternalTimestamp(ctx context.Context, in *SetExternalTimestampRequest, opts ...grpc.CallOption) (*SetExternalTimestampResponse, error) + GetExternalTimestamp(ctx context.Context, in *GetExternalTimestampRequest, opts ...grpc.CallOption) (*GetExternalTimestampResponse, error) + // Get the minimum timestamp across all keyspace groups from API server + // TODO: Currently, we need to ask API server to get the minimum timestamp. + // Once we support service discovery, we can remove it. + GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...grpc.CallOption) (*GetMinTSResponse, error) } -type pDTsoServer struct { - grpc.ServerStream +type pDClient struct { + cc *grpc.ClientConn } -func (x *pDTsoServer) Send(m *TsoResponse) error { - return x.ServerStream.SendMsg(m) +func NewPDClient(cc *grpc.ClientConn) PDClient { + return &pDClient{cc} } -func (x *pDTsoServer) Recv() (*TsoRequest, error) { - m := new(TsoRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { +func (c *pDClient) GetClusterInfo(ctx context.Context, in *GetClusterInfoRequest, opts ...grpc.CallOption) (*GetClusterInfoResponse, error) { + out := new(GetClusterInfoResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetClusterInfo", in, out, opts...) + if err != nil { return nil, err } - return m, nil + return out, nil } -func _PD_Bootstrap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BootstrapRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*GetMembersResponse, error) { + out := new(GetMembersResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetMembers", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).Bootstrap(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/Bootstrap", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).Bootstrap(ctx, req.(*BootstrapRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_IsBootstrapped_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsBootstrappedRequest) - if err := dec(in); err != nil { +func (c *pDClient) Tso(ctx context.Context, opts ...grpc.CallOption) (PD_TsoClient, error) { + stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[0], "/pdpb.PD/Tso", opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).IsBootstrapped(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/IsBootstrapped", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).IsBootstrapped(ctx, req.(*IsBootstrappedRequest)) - } - return interceptor(ctx, in, info, handler) + x := &pDTsoClient{stream} + return x, nil } -func _PD_AllocID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AllocIDRequest) - if err := dec(in); err != nil { +type PD_TsoClient interface { + Send(*TsoRequest) error + Recv() (*TsoResponse, error) + grpc.ClientStream +} + +type pDTsoClient struct { + grpc.ClientStream +} + +func (x *pDTsoClient) Send(m *TsoRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *pDTsoClient) Recv() (*TsoResponse, error) { + m := new(TsoResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).AllocID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/AllocID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).AllocID(ctx, req.(*AllocIDRequest)) - } - return interceptor(ctx, in, info, handler) + return m, nil } -func _PD_IsSnapshotRecovering_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsSnapshotRecoveringRequest) - if err := dec(in); err != nil { +func (c *pDClient) Bootstrap(ctx context.Context, in *BootstrapRequest, opts ...grpc.CallOption) (*BootstrapResponse, error) { + out := new(BootstrapResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/Bootstrap", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).IsSnapshotRecovering(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/IsSnapshotRecovering", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).IsSnapshotRecovering(ctx, req.(*IsSnapshotRecoveringRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetStoreRequest) - if err := dec(in); err != nil { +func (c *pDClient) IsBootstrapped(ctx context.Context, in *IsBootstrappedRequest, opts ...grpc.CallOption) (*IsBootstrappedResponse, error) { + out := new(IsBootstrappedResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/IsBootstrapped", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetStore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetStore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetStore(ctx, req.(*GetStoreRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_PutStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PutStoreRequest) - if err := dec(in); err != nil { +func (c *pDClient) AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc.CallOption) (*AllocIDResponse, error) { + out := new(AllocIDResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/AllocID", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).PutStore(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/PutStore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).PutStore(ctx, req.(*PutStoreRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetAllStores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllStoresRequest) - if err := dec(in); err != nil { +func (c *pDClient) IsSnapshotRecovering(ctx context.Context, in *IsSnapshotRecoveringRequest, opts ...grpc.CallOption) (*IsSnapshotRecoveringResponse, error) { + out := new(IsSnapshotRecoveringResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/IsSnapshotRecovering", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetAllStores(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetAllStores", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetAllStores(ctx, req.(*GetAllStoresRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_StoreHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StoreHeartbeatRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetStore(ctx context.Context, in *GetStoreRequest, opts ...grpc.CallOption) (*GetStoreResponse, error) { + out := new(GetStoreResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetStore", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).StoreHeartbeat(ctx, in) + return out, nil +} + +func (c *pDClient) PutStore(ctx context.Context, in *PutStoreRequest, opts ...grpc.CallOption) (*PutStoreResponse, error) { + out := new(PutStoreResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/PutStore", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/StoreHeartbeat", + return out, nil +} + +func (c *pDClient) GetAllStores(ctx context.Context, in *GetAllStoresRequest, opts ...grpc.CallOption) (*GetAllStoresResponse, error) { + out := new(GetAllStoresResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetAllStores", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).StoreHeartbeat(ctx, req.(*StoreHeartbeatRequest)) + return out, nil +} + +func (c *pDClient) StoreHeartbeat(ctx context.Context, in *StoreHeartbeatRequest, opts ...grpc.CallOption) (*StoreHeartbeatResponse, error) { + out := new(StoreHeartbeatResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/StoreHeartbeat", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_RegionHeartbeat_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).RegionHeartbeat(&pDRegionHeartbeatServer{stream}) +func (c *pDClient) RegionHeartbeat(ctx context.Context, opts ...grpc.CallOption) (PD_RegionHeartbeatClient, error) { + stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[1], "/pdpb.PD/RegionHeartbeat", opts...) + if err != nil { + return nil, err + } + x := &pDRegionHeartbeatClient{stream} + return x, nil } -type PD_RegionHeartbeatServer interface { - Send(*RegionHeartbeatResponse) error - Recv() (*RegionHeartbeatRequest, error) - grpc.ServerStream +type PD_RegionHeartbeatClient interface { + Send(*RegionHeartbeatRequest) error + Recv() (*RegionHeartbeatResponse, error) + grpc.ClientStream } -type pDRegionHeartbeatServer struct { - grpc.ServerStream +type pDRegionHeartbeatClient struct { + grpc.ClientStream } -func (x *pDRegionHeartbeatServer) Send(m *RegionHeartbeatResponse) error { - return x.ServerStream.SendMsg(m) +func (x *pDRegionHeartbeatClient) Send(m *RegionHeartbeatRequest) error { + return x.ClientStream.SendMsg(m) } -func (x *pDRegionHeartbeatServer) Recv() (*RegionHeartbeatRequest, error) { - m := new(RegionHeartbeatRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { +func (x *pDRegionHeartbeatClient) Recv() (*RegionHeartbeatResponse, error) { + m := new(RegionHeartbeatResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func _PD_GetRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRegionRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { + out := new(GetRegionResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetRegion", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetRegion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetRegion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetRegion(ctx, req.(*GetRegionRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetPrevRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRegionRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetPrevRegion(ctx context.Context, in *GetRegionRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { + out := new(GetRegionResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetPrevRegion", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetPrevRegion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetPrevRegion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetPrevRegion(ctx, req.(*GetRegionRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetRegionByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRegionByIDRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetRegionByID(ctx context.Context, in *GetRegionByIDRequest, opts ...grpc.CallOption) (*GetRegionResponse, error) { + out := new(GetRegionResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetRegionByID", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetRegionByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetRegionByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetRegionByID(ctx, req.(*GetRegionByIDRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_ScanRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ScanRegionsRequest) - if err := dec(in); err != nil { +func (c *pDClient) ScanRegions(ctx context.Context, in *ScanRegionsRequest, opts ...grpc.CallOption) (*ScanRegionsResponse, error) { + out := new(ScanRegionsResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/ScanRegions", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).ScanRegions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/ScanRegions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).ScanRegions(ctx, req.(*ScanRegionsRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_BatchScanRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BatchScanRegionsRequest) - if err := dec(in); err != nil { +func (c *pDClient) BatchScanRegions(ctx context.Context, in *BatchScanRegionsRequest, opts ...grpc.CallOption) (*BatchScanRegionsResponse, error) { + out := new(BatchScanRegionsResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/BatchScanRegions", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).BatchScanRegions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/BatchScanRegions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).BatchScanRegions(ctx, req.(*BatchScanRegionsRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_AskSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AskSplitRequest) - if err := dec(in); err != nil { +// Deprecated: Do not use. +func (c *pDClient) AskSplit(ctx context.Context, in *AskSplitRequest, opts ...grpc.CallOption) (*AskSplitResponse, error) { + out := new(AskSplitResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/AskSplit", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).AskSplit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/AskSplit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).AskSplit(ctx, req.(*AskSplitRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_ReportSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReportSplitRequest) - if err := dec(in); err != nil { +// Deprecated: Do not use. +func (c *pDClient) ReportSplit(ctx context.Context, in *ReportSplitRequest, opts ...grpc.CallOption) (*ReportSplitResponse, error) { + out := new(ReportSplitResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/ReportSplit", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).ReportSplit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/ReportSplit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).ReportSplit(ctx, req.(*ReportSplitRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_AskBatchSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AskBatchSplitRequest) - if err := dec(in); err != nil { +func (c *pDClient) AskBatchSplit(ctx context.Context, in *AskBatchSplitRequest, opts ...grpc.CallOption) (*AskBatchSplitResponse, error) { + out := new(AskBatchSplitResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/AskBatchSplit", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).AskBatchSplit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/AskBatchSplit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).AskBatchSplit(ctx, req.(*AskBatchSplitRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_ReportBatchSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReportBatchSplitRequest) - if err := dec(in); err != nil { +func (c *pDClient) ReportBatchSplit(ctx context.Context, in *ReportBatchSplitRequest, opts ...grpc.CallOption) (*ReportBatchSplitResponse, error) { + out := new(ReportBatchSplitResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/ReportBatchSplit", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).ReportBatchSplit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/ReportBatchSplit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).ReportBatchSplit(ctx, req.(*ReportBatchSplitRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetClusterConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetClusterConfigRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetClusterConfig(ctx context.Context, in *GetClusterConfigRequest, opts ...grpc.CallOption) (*GetClusterConfigResponse, error) { + out := new(GetClusterConfigResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetClusterConfig", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetClusterConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetClusterConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetClusterConfig(ctx, req.(*GetClusterConfigRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_PutClusterConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PutClusterConfigRequest) - if err := dec(in); err != nil { +func (c *pDClient) PutClusterConfig(ctx context.Context, in *PutClusterConfigRequest, opts ...grpc.CallOption) (*PutClusterConfigResponse, error) { + out := new(PutClusterConfigResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/PutClusterConfig", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).PutClusterConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/PutClusterConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).PutClusterConfig(ctx, req.(*PutClusterConfigRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_ScatterRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ScatterRegionRequest) - if err := dec(in); err != nil { +func (c *pDClient) ScatterRegion(ctx context.Context, in *ScatterRegionRequest, opts ...grpc.CallOption) (*ScatterRegionResponse, error) { + out := new(ScatterRegionResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/ScatterRegion", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).ScatterRegion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/ScatterRegion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).ScatterRegion(ctx, req.(*ScatterRegionRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetGCSafePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGCSafePointRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetGCSafePoint(ctx context.Context, in *GetGCSafePointRequest, opts ...grpc.CallOption) (*GetGCSafePointResponse, error) { + out := new(GetGCSafePointResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetGCSafePoint", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetGCSafePoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetGCSafePoint", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetGCSafePoint(ctx, req.(*GetGCSafePointRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_UpdateGCSafePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGCSafePointRequest) - if err := dec(in); err != nil { +func (c *pDClient) UpdateGCSafePoint(ctx context.Context, in *UpdateGCSafePointRequest, opts ...grpc.CallOption) (*UpdateGCSafePointResponse, error) { + out := new(UpdateGCSafePointResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePoint", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).UpdateGCSafePoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/UpdateGCSafePoint", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).UpdateGCSafePoint(ctx, req.(*UpdateGCSafePointRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_UpdateServiceGCSafePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateServiceGCSafePointRequest) - if err := dec(in); err != nil { +func (c *pDClient) UpdateServiceGCSafePoint(ctx context.Context, in *UpdateServiceGCSafePointRequest, opts ...grpc.CallOption) (*UpdateServiceGCSafePointResponse, error) { + out := new(UpdateServiceGCSafePointResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateServiceGCSafePoint", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).UpdateServiceGCSafePoint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/UpdateServiceGCSafePoint", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).UpdateServiceGCSafePoint(ctx, req.(*UpdateServiceGCSafePointRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetGCSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGCSafePointV2Request) - if err := dec(in); err != nil { +func (c *pDClient) GetGCSafePointV2(ctx context.Context, in *GetGCSafePointV2Request, opts ...grpc.CallOption) (*GetGCSafePointV2Response, error) { + out := new(GetGCSafePointV2Response) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetGCSafePointV2", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetGCSafePointV2(ctx, in) + return out, nil +} + +func (c *pDClient) WatchGCSafePointV2(ctx context.Context, in *WatchGCSafePointV2Request, opts ...grpc.CallOption) (PD_WatchGCSafePointV2Client, error) { + stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[2], "/pdpb.PD/WatchGCSafePointV2", opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetGCSafePointV2", + x := &pDWatchGCSafePointV2Client{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetGCSafePointV2(ctx, req.(*GetGCSafePointV2Request)) + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return x, nil } -func _PD_WatchGCSafePointV2_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WatchGCSafePointV2Request) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(PDServer).WatchGCSafePointV2(m, &pDWatchGCSafePointV2Server{stream}) +type PD_WatchGCSafePointV2Client interface { + Recv() (*WatchGCSafePointV2Response, error) + grpc.ClientStream } -type PD_WatchGCSafePointV2Server interface { - Send(*WatchGCSafePointV2Response) error - grpc.ServerStream +type pDWatchGCSafePointV2Client struct { + grpc.ClientStream } -type pDWatchGCSafePointV2Server struct { - grpc.ServerStream +func (x *pDWatchGCSafePointV2Client) Recv() (*WatchGCSafePointV2Response, error) { + m := new(WatchGCSafePointV2Response) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } -func (x *pDWatchGCSafePointV2Server) Send(m *WatchGCSafePointV2Response) error { - return x.ServerStream.SendMsg(m) +func (c *pDClient) UpdateGCSafePointV2(ctx context.Context, in *UpdateGCSafePointV2Request, opts ...grpc.CallOption) (*UpdateGCSafePointV2Response, error) { + out := new(UpdateGCSafePointV2Response) + err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateGCSafePointV2", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func _PD_UpdateGCSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGCSafePointV2Request) - if err := dec(in); err != nil { +func (c *pDClient) UpdateServiceSafePointV2(ctx context.Context, in *UpdateServiceSafePointV2Request, opts ...grpc.CallOption) (*UpdateServiceSafePointV2Response, error) { + out := new(UpdateServiceSafePointV2Response) + err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateServiceSafePointV2", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).UpdateGCSafePointV2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/UpdateGCSafePointV2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).UpdateGCSafePointV2(ctx, req.(*UpdateGCSafePointV2Request)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_UpdateServiceSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateServiceSafePointV2Request) - if err := dec(in); err != nil { +func (c *pDClient) GetAllGCSafePointV2(ctx context.Context, in *GetAllGCSafePointV2Request, opts ...grpc.CallOption) (*GetAllGCSafePointV2Response, error) { + out := new(GetAllGCSafePointV2Response) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetAllGCSafePointV2", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).UpdateServiceSafePointV2(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/UpdateServiceSafePointV2", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).UpdateServiceSafePointV2(ctx, req.(*UpdateServiceSafePointV2Request)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetAllGCSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllGCSafePointV2Request) - if err := dec(in); err != nil { +func (c *pDClient) UpdateTxnSafePoint(ctx context.Context, in *UpdateTxnSafePointRequest, opts ...grpc.CallOption) (*UpdateTxnSafePointResponse, error) { + out := new(UpdateTxnSafePointResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/UpdateTxnSafePoint", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetAllGCSafePointV2(ctx, in) + return out, nil +} + +func (c *pDClient) SetGCBarrier(ctx context.Context, in *SetGCBarrierRequest, opts ...grpc.CallOption) (*SetGCBarrierResponse, error) { + out := new(SetGCBarrierResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/SetGCBarrier", in, out, opts...) + if err != nil { + return nil, err } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetAllGCSafePointV2", + return out, nil +} + +func (c *pDClient) DeleteGCBarrier(ctx context.Context, in *DeleteGCBarrierRequest, opts ...grpc.CallOption) (*DeleteGCBarrierResponse, error) { + out := new(DeleteGCBarrierResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/DeleteGCBarrier", in, out, opts...) + if err != nil { + return nil, err } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetAllGCSafePointV2(ctx, req.(*GetAllGCSafePointV2Request)) + return out, nil +} + +func (c *pDClient) GetGCState(ctx context.Context, in *GetGCStateRequest, opts ...grpc.CallOption) (*GetGCStateResponse, error) { + out := new(GetGCStateResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetGCState", in, out, opts...) + if err != nil { + return nil, err } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_SyncRegions_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).SyncRegions(&pDSyncRegionsServer{stream}) +func (c *pDClient) SyncRegions(ctx context.Context, opts ...grpc.CallOption) (PD_SyncRegionsClient, error) { + stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[3], "/pdpb.PD/SyncRegions", opts...) + if err != nil { + return nil, err + } + x := &pDSyncRegionsClient{stream} + return x, nil } -type PD_SyncRegionsServer interface { - Send(*SyncRegionResponse) error - Recv() (*SyncRegionRequest, error) - grpc.ServerStream +type PD_SyncRegionsClient interface { + Send(*SyncRegionRequest) error + Recv() (*SyncRegionResponse, error) + grpc.ClientStream } -type pDSyncRegionsServer struct { - grpc.ServerStream +type pDSyncRegionsClient struct { + grpc.ClientStream } -func (x *pDSyncRegionsServer) Send(m *SyncRegionResponse) error { - return x.ServerStream.SendMsg(m) +func (x *pDSyncRegionsClient) Send(m *SyncRegionRequest) error { + return x.ClientStream.SendMsg(m) } -func (x *pDSyncRegionsServer) Recv() (*SyncRegionRequest, error) { - m := new(SyncRegionRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { +func (x *pDSyncRegionsClient) Recv() (*SyncRegionResponse, error) { + m := new(SyncRegionResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func _PD_GetOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetOperatorRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetOperator(ctx context.Context, in *GetOperatorRequest, opts ...grpc.CallOption) (*GetOperatorResponse, error) { + out := new(GetOperatorResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetOperator", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetOperator(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetOperator", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetOperator(ctx, req.(*GetOperatorRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_SyncMaxTS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SyncMaxTSRequest) - if err := dec(in); err != nil { +func (c *pDClient) SyncMaxTS(ctx context.Context, in *SyncMaxTSRequest, opts ...grpc.CallOption) (*SyncMaxTSResponse, error) { + out := new(SyncMaxTSResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/SyncMaxTS", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).SyncMaxTS(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/SyncMaxTS", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).SyncMaxTS(ctx, req.(*SyncMaxTSRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_SplitRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SplitRegionsRequest) - if err := dec(in); err != nil { +func (c *pDClient) SplitRegions(ctx context.Context, in *SplitRegionsRequest, opts ...grpc.CallOption) (*SplitRegionsResponse, error) { + out := new(SplitRegionsResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/SplitRegions", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).SplitRegions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/SplitRegions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).SplitRegions(ctx, req.(*SplitRegionsRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_SplitAndScatterRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SplitAndScatterRegionsRequest) - if err := dec(in); err != nil { +func (c *pDClient) SplitAndScatterRegions(ctx context.Context, in *SplitAndScatterRegionsRequest, opts ...grpc.CallOption) (*SplitAndScatterRegionsResponse, error) { + out := new(SplitAndScatterRegionsResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/SplitAndScatterRegions", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).SplitAndScatterRegions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/SplitAndScatterRegions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).SplitAndScatterRegions(ctx, req.(*SplitAndScatterRegionsRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetDCLocationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDCLocationInfoRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetDCLocationInfo(ctx context.Context, in *GetDCLocationInfoRequest, opts ...grpc.CallOption) (*GetDCLocationInfoResponse, error) { + out := new(GetDCLocationInfoResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetDCLocationInfo", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetDCLocationInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetDCLocationInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetDCLocationInfo(ctx, req.(*GetDCLocationInfoRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_StoreGlobalConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StoreGlobalConfigRequest) - if err := dec(in); err != nil { +func (c *pDClient) StoreGlobalConfig(ctx context.Context, in *StoreGlobalConfigRequest, opts ...grpc.CallOption) (*StoreGlobalConfigResponse, error) { + out := new(StoreGlobalConfigResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/StoreGlobalConfig", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).StoreGlobalConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/StoreGlobalConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).StoreGlobalConfig(ctx, req.(*StoreGlobalConfigRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_LoadGlobalConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadGlobalConfigRequest) - if err := dec(in); err != nil { +func (c *pDClient) LoadGlobalConfig(ctx context.Context, in *LoadGlobalConfigRequest, opts ...grpc.CallOption) (*LoadGlobalConfigResponse, error) { + out := new(LoadGlobalConfigResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/LoadGlobalConfig", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).LoadGlobalConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/LoadGlobalConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).LoadGlobalConfig(ctx, req.(*LoadGlobalConfigRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_WatchGlobalConfig_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WatchGlobalConfigRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (c *pDClient) WatchGlobalConfig(ctx context.Context, in *WatchGlobalConfigRequest, opts ...grpc.CallOption) (PD_WatchGlobalConfigClient, error) { + stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[4], "/pdpb.PD/WatchGlobalConfig", opts...) + if err != nil { + return nil, err } - return srv.(PDServer).WatchGlobalConfig(m, &pDWatchGlobalConfigServer{stream}) + x := &pDWatchGlobalConfigClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -type PD_WatchGlobalConfigServer interface { - Send(*WatchGlobalConfigResponse) error - grpc.ServerStream +type PD_WatchGlobalConfigClient interface { + Recv() (*WatchGlobalConfigResponse, error) + grpc.ClientStream } -type pDWatchGlobalConfigServer struct { - grpc.ServerStream +type pDWatchGlobalConfigClient struct { + grpc.ClientStream } -func (x *pDWatchGlobalConfigServer) Send(m *WatchGlobalConfigResponse) error { - return x.ServerStream.SendMsg(m) +func (x *pDWatchGlobalConfigClient) Recv() (*WatchGlobalConfigResponse, error) { + m := new(WatchGlobalConfigResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } -func _PD_ReportBuckets_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(PDServer).ReportBuckets(&pDReportBucketsServer{stream}) +func (c *pDClient) ReportBuckets(ctx context.Context, opts ...grpc.CallOption) (PD_ReportBucketsClient, error) { + stream, err := c.cc.NewStream(ctx, &_PD_serviceDesc.Streams[5], "/pdpb.PD/ReportBuckets", opts...) + if err != nil { + return nil, err + } + x := &pDReportBucketsClient{stream} + return x, nil } -type PD_ReportBucketsServer interface { - SendAndClose(*ReportBucketsResponse) error - Recv() (*ReportBucketsRequest, error) - grpc.ServerStream +type PD_ReportBucketsClient interface { + Send(*ReportBucketsRequest) error + CloseAndRecv() (*ReportBucketsResponse, error) + grpc.ClientStream } -type pDReportBucketsServer struct { - grpc.ServerStream +type pDReportBucketsClient struct { + grpc.ClientStream } -func (x *pDReportBucketsServer) SendAndClose(m *ReportBucketsResponse) error { - return x.ServerStream.SendMsg(m) +func (x *pDReportBucketsClient) Send(m *ReportBucketsRequest) error { + return x.ClientStream.SendMsg(m) } -func (x *pDReportBucketsServer) Recv() (*ReportBucketsRequest, error) { - m := new(ReportBucketsRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { +func (x *pDReportBucketsClient) CloseAndRecv() (*ReportBucketsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(ReportBucketsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func _PD_ReportMinResolvedTS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReportMinResolvedTsRequest) - if err := dec(in); err != nil { +func (c *pDClient) ReportMinResolvedTS(ctx context.Context, in *ReportMinResolvedTsRequest, opts ...grpc.CallOption) (*ReportMinResolvedTsResponse, error) { + out := new(ReportMinResolvedTsResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/ReportMinResolvedTS", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).ReportMinResolvedTS(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/ReportMinResolvedTS", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).ReportMinResolvedTS(ctx, req.(*ReportMinResolvedTsRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_SetExternalTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetExternalTimestampRequest) - if err := dec(in); err != nil { +func (c *pDClient) SetExternalTimestamp(ctx context.Context, in *SetExternalTimestampRequest, opts ...grpc.CallOption) (*SetExternalTimestampResponse, error) { + out := new(SetExternalTimestampResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/SetExternalTimestamp", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).SetExternalTimestamp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/SetExternalTimestamp", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).SetExternalTimestamp(ctx, req.(*SetExternalTimestampRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetExternalTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetExternalTimestampRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetExternalTimestamp(ctx context.Context, in *GetExternalTimestampRequest, opts ...grpc.CallOption) (*GetExternalTimestampResponse, error) { + out := new(GetExternalTimestampResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetExternalTimestamp", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetExternalTimestamp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetExternalTimestamp", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetExternalTimestamp(ctx, req.(*GetExternalTimestampRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -func _PD_GetMinTS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetMinTSRequest) - if err := dec(in); err != nil { +func (c *pDClient) GetMinTS(ctx context.Context, in *GetMinTSRequest, opts ...grpc.CallOption) (*GetMinTSResponse, error) { + out := new(GetMinTSResponse) + err := c.cc.Invoke(ctx, "/pdpb.PD/GetMinTS", in, out, opts...) + if err != nil { return nil, err } - if interceptor == nil { - return srv.(PDServer).GetMinTS(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pdpb.PD/GetMinTS", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PDServer).GetMinTS(ctx, req.(*GetMinTSRequest)) - } - return interceptor(ctx, in, info, handler) + return out, nil } -var _PD_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pdpb.PD", - HandlerType: (*PDServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetClusterInfo", - Handler: _PD_GetClusterInfo_Handler, - }, - { - MethodName: "GetMembers", - Handler: _PD_GetMembers_Handler, - }, - { - MethodName: "Bootstrap", - Handler: _PD_Bootstrap_Handler, - }, - { - MethodName: "IsBootstrapped", - Handler: _PD_IsBootstrapped_Handler, - }, - { - MethodName: "AllocID", - Handler: _PD_AllocID_Handler, - }, - { - MethodName: "IsSnapshotRecovering", - Handler: _PD_IsSnapshotRecovering_Handler, - }, - { - MethodName: "GetStore", - Handler: _PD_GetStore_Handler, - }, - { - MethodName: "PutStore", - Handler: _PD_PutStore_Handler, - }, - { - MethodName: "GetAllStores", - Handler: _PD_GetAllStores_Handler, - }, - { - MethodName: "StoreHeartbeat", - Handler: _PD_StoreHeartbeat_Handler, - }, - { - MethodName: "GetRegion", - Handler: _PD_GetRegion_Handler, - }, - { - MethodName: "GetPrevRegion", - Handler: _PD_GetPrevRegion_Handler, - }, - { - MethodName: "GetRegionByID", - Handler: _PD_GetRegionByID_Handler, - }, - { - MethodName: "ScanRegions", - Handler: _PD_ScanRegions_Handler, - }, - { - MethodName: "BatchScanRegions", - Handler: _PD_BatchScanRegions_Handler, - }, - { - MethodName: "AskSplit", - Handler: _PD_AskSplit_Handler, - }, - { - MethodName: "ReportSplit", - Handler: _PD_ReportSplit_Handler, - }, - { - MethodName: "AskBatchSplit", - Handler: _PD_AskBatchSplit_Handler, - }, - { - MethodName: "ReportBatchSplit", - Handler: _PD_ReportBatchSplit_Handler, - }, - { - MethodName: "GetClusterConfig", - Handler: _PD_GetClusterConfig_Handler, - }, - { - MethodName: "PutClusterConfig", - Handler: _PD_PutClusterConfig_Handler, - }, - { - MethodName: "ScatterRegion", - Handler: _PD_ScatterRegion_Handler, - }, - { - MethodName: "GetGCSafePoint", - Handler: _PD_GetGCSafePoint_Handler, - }, - { - MethodName: "UpdateGCSafePoint", - Handler: _PD_UpdateGCSafePoint_Handler, - }, - { - MethodName: "UpdateServiceGCSafePoint", - Handler: _PD_UpdateServiceGCSafePoint_Handler, - }, - { - MethodName: "GetGCSafePointV2", - Handler: _PD_GetGCSafePointV2_Handler, - }, - { - MethodName: "UpdateGCSafePointV2", - Handler: _PD_UpdateGCSafePointV2_Handler, - }, - { - MethodName: "UpdateServiceSafePointV2", - Handler: _PD_UpdateServiceSafePointV2_Handler, - }, - { - MethodName: "GetAllGCSafePointV2", - Handler: _PD_GetAllGCSafePointV2_Handler, - }, - { - MethodName: "GetOperator", - Handler: _PD_GetOperator_Handler, - }, - { - MethodName: "SyncMaxTS", - Handler: _PD_SyncMaxTS_Handler, - }, - { - MethodName: "SplitRegions", - Handler: _PD_SplitRegions_Handler, - }, - { - MethodName: "SplitAndScatterRegions", - Handler: _PD_SplitAndScatterRegions_Handler, - }, - { - MethodName: "GetDCLocationInfo", - Handler: _PD_GetDCLocationInfo_Handler, - }, - { - MethodName: "StoreGlobalConfig", - Handler: _PD_StoreGlobalConfig_Handler, - }, - { - MethodName: "LoadGlobalConfig", - Handler: _PD_LoadGlobalConfig_Handler, - }, - { - MethodName: "ReportMinResolvedTS", - Handler: _PD_ReportMinResolvedTS_Handler, - }, - { - MethodName: "SetExternalTimestamp", - Handler: _PD_SetExternalTimestamp_Handler, - }, - { - MethodName: "GetExternalTimestamp", - Handler: _PD_GetExternalTimestamp_Handler, - }, - { - MethodName: "GetMinTS", - Handler: _PD_GetMinTS_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Tso", - Handler: _PD_Tso_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "RegionHeartbeat", - Handler: _PD_RegionHeartbeat_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "WatchGCSafePointV2", - Handler: _PD_WatchGCSafePointV2_Handler, - ServerStreams: true, - }, - { - StreamName: "SyncRegions", - Handler: _PD_SyncRegions_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "WatchGlobalConfig", - Handler: _PD_WatchGlobalConfig_Handler, - ServerStreams: true, - }, - { - StreamName: "ReportBuckets", - Handler: _PD_ReportBuckets_Handler, - ClientStreams: true, - }, - }, - Metadata: "pdpb.proto", +// PDServer is the server API for PD service. +type PDServer interface { + // GetClusterInfo get the information of this cluster. It does not require + // the cluster_id in request matchs the id of this cluster. + GetClusterInfo(context.Context, *GetClusterInfoRequest) (*GetClusterInfoResponse, error) + // GetMembers get the member list of this cluster. It does not require + // the cluster_id in request matchs the id of this cluster. + GetMembers(context.Context, *GetMembersRequest) (*GetMembersResponse, error) + Tso(PD_TsoServer) error + Bootstrap(context.Context, *BootstrapRequest) (*BootstrapResponse, error) + IsBootstrapped(context.Context, *IsBootstrappedRequest) (*IsBootstrappedResponse, error) + AllocID(context.Context, *AllocIDRequest) (*AllocIDResponse, error) + IsSnapshotRecovering(context.Context, *IsSnapshotRecoveringRequest) (*IsSnapshotRecoveringResponse, error) + GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error) + PutStore(context.Context, *PutStoreRequest) (*PutStoreResponse, error) + GetAllStores(context.Context, *GetAllStoresRequest) (*GetAllStoresResponse, error) + StoreHeartbeat(context.Context, *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) + RegionHeartbeat(PD_RegionHeartbeatServer) error + GetRegion(context.Context, *GetRegionRequest) (*GetRegionResponse, error) + GetPrevRegion(context.Context, *GetRegionRequest) (*GetRegionResponse, error) + GetRegionByID(context.Context, *GetRegionByIDRequest) (*GetRegionResponse, error) + // Deprecated: use BatchScanRegions instead. + ScanRegions(context.Context, *ScanRegionsRequest) (*ScanRegionsResponse, error) + BatchScanRegions(context.Context, *BatchScanRegionsRequest) (*BatchScanRegionsResponse, error) + AskSplit(context.Context, *AskSplitRequest) (*AskSplitResponse, error) + ReportSplit(context.Context, *ReportSplitRequest) (*ReportSplitResponse, error) + AskBatchSplit(context.Context, *AskBatchSplitRequest) (*AskBatchSplitResponse, error) + ReportBatchSplit(context.Context, *ReportBatchSplitRequest) (*ReportBatchSplitResponse, error) + GetClusterConfig(context.Context, *GetClusterConfigRequest) (*GetClusterConfigResponse, error) + PutClusterConfig(context.Context, *PutClusterConfigRequest) (*PutClusterConfigResponse, error) + ScatterRegion(context.Context, *ScatterRegionRequest) (*ScatterRegionResponse, error) + GetGCSafePoint(context.Context, *GetGCSafePointRequest) (*GetGCSafePointResponse, error) + UpdateGCSafePoint(context.Context, *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) + UpdateServiceGCSafePoint(context.Context, *UpdateServiceGCSafePointRequest) (*UpdateServiceGCSafePointResponse, error) + GetGCSafePointV2(context.Context, *GetGCSafePointV2Request) (*GetGCSafePointV2Response, error) + WatchGCSafePointV2(*WatchGCSafePointV2Request, PD_WatchGCSafePointV2Server) error + UpdateGCSafePointV2(context.Context, *UpdateGCSafePointV2Request) (*UpdateGCSafePointV2Response, error) + UpdateServiceSafePointV2(context.Context, *UpdateServiceSafePointV2Request) (*UpdateServiceSafePointV2Response, error) + GetAllGCSafePointV2(context.Context, *GetAllGCSafePointV2Request) (*GetAllGCSafePointV2Response, error) + UpdateTxnSafePoint(context.Context, *UpdateTxnSafePointRequest) (*UpdateTxnSafePointResponse, error) + SetGCBarrier(context.Context, *SetGCBarrierRequest) (*SetGCBarrierResponse, error) + DeleteGCBarrier(context.Context, *DeleteGCBarrierRequest) (*DeleteGCBarrierResponse, error) + GetGCState(context.Context, *GetGCStateRequest) (*GetGCStateResponse, error) + SyncRegions(PD_SyncRegionsServer) error + GetOperator(context.Context, *GetOperatorRequest) (*GetOperatorResponse, error) + SyncMaxTS(context.Context, *SyncMaxTSRequest) (*SyncMaxTSResponse, error) + SplitRegions(context.Context, *SplitRegionsRequest) (*SplitRegionsResponse, error) + SplitAndScatterRegions(context.Context, *SplitAndScatterRegionsRequest) (*SplitAndScatterRegionsResponse, error) + GetDCLocationInfo(context.Context, *GetDCLocationInfoRequest) (*GetDCLocationInfoResponse, error) + StoreGlobalConfig(context.Context, *StoreGlobalConfigRequest) (*StoreGlobalConfigResponse, error) + LoadGlobalConfig(context.Context, *LoadGlobalConfigRequest) (*LoadGlobalConfigResponse, error) + WatchGlobalConfig(*WatchGlobalConfigRequest, PD_WatchGlobalConfigServer) error + ReportBuckets(PD_ReportBucketsServer) error + ReportMinResolvedTS(context.Context, *ReportMinResolvedTsRequest) (*ReportMinResolvedTsResponse, error) + SetExternalTimestamp(context.Context, *SetExternalTimestampRequest) (*SetExternalTimestampResponse, error) + GetExternalTimestamp(context.Context, *GetExternalTimestampRequest) (*GetExternalTimestampResponse, error) + // Get the minimum timestamp across all keyspace groups from API server + // TODO: Currently, we need to ask API server to get the minimum timestamp. + // Once we support service discovery, we can remove it. + GetMinTS(context.Context, *GetMinTSRequest) (*GetMinTSResponse, error) } -func (m *WatchGlobalConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// UnimplementedPDServer can be embedded to have forward compatible implementations. +type UnimplementedPDServer struct { } -func (m *WatchGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedPDServer) GetClusterInfo(ctx context.Context, req *GetClusterInfoRequest) (*GetClusterInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterInfo not implemented") } - -func (m *WatchGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x10 - } - if len(m.ConfigPath) > 0 { - i -= len(m.ConfigPath) - copy(dAtA[i:], m.ConfigPath) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (*UnimplementedPDServer) GetMembers(ctx context.Context, req *GetMembersRequest) (*GetMembersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMembers not implemented") } - -func (m *WatchGlobalConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedPDServer) Tso(srv PD_TsoServer) error { + return status.Errorf(codes.Unimplemented, "method Tso not implemented") } - -func (m *WatchGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*UnimplementedPDServer) Bootstrap(ctx context.Context, req *BootstrapRequest) (*BootstrapResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Bootstrap not implemented") } - -func (m *WatchGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x10 - } - if len(m.Changes) > 0 { - for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil +func (*UnimplementedPDServer) IsBootstrapped(ctx context.Context, req *IsBootstrappedRequest) (*IsBootstrappedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsBootstrapped not implemented") } - -func (m *StoreGlobalConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedPDServer) AllocID(ctx context.Context, req *AllocIDRequest) (*AllocIDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllocID not implemented") +} +func (*UnimplementedPDServer) IsSnapshotRecovering(ctx context.Context, req *IsSnapshotRecoveringRequest) (*IsSnapshotRecoveringResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsSnapshotRecovering not implemented") +} +func (*UnimplementedPDServer) GetStore(ctx context.Context, req *GetStoreRequest) (*GetStoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStore not implemented") +} +func (*UnimplementedPDServer) PutStore(ctx context.Context, req *PutStoreRequest) (*PutStoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PutStore not implemented") +} +func (*UnimplementedPDServer) GetAllStores(ctx context.Context, req *GetAllStoresRequest) (*GetAllStoresResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAllStores not implemented") +} +func (*UnimplementedPDServer) StoreHeartbeat(ctx context.Context, req *StoreHeartbeatRequest) (*StoreHeartbeatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StoreHeartbeat not implemented") +} +func (*UnimplementedPDServer) RegionHeartbeat(srv PD_RegionHeartbeatServer) error { + return status.Errorf(codes.Unimplemented, "method RegionHeartbeat not implemented") +} +func (*UnimplementedPDServer) GetRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRegion not implemented") +} +func (*UnimplementedPDServer) GetPrevRegion(ctx context.Context, req *GetRegionRequest) (*GetRegionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPrevRegion not implemented") +} +func (*UnimplementedPDServer) GetRegionByID(ctx context.Context, req *GetRegionByIDRequest) (*GetRegionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRegionByID not implemented") +} +func (*UnimplementedPDServer) ScanRegions(ctx context.Context, req *ScanRegionsRequest) (*ScanRegionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ScanRegions not implemented") +} +func (*UnimplementedPDServer) BatchScanRegions(ctx context.Context, req *BatchScanRegionsRequest) (*BatchScanRegionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BatchScanRegions not implemented") +} +func (*UnimplementedPDServer) AskSplit(ctx context.Context, req *AskSplitRequest) (*AskSplitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AskSplit not implemented") +} +func (*UnimplementedPDServer) ReportSplit(ctx context.Context, req *ReportSplitRequest) (*ReportSplitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReportSplit not implemented") +} +func (*UnimplementedPDServer) AskBatchSplit(ctx context.Context, req *AskBatchSplitRequest) (*AskBatchSplitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AskBatchSplit not implemented") +} +func (*UnimplementedPDServer) ReportBatchSplit(ctx context.Context, req *ReportBatchSplitRequest) (*ReportBatchSplitResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReportBatchSplit not implemented") +} +func (*UnimplementedPDServer) GetClusterConfig(ctx context.Context, req *GetClusterConfigRequest) (*GetClusterConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClusterConfig not implemented") +} +func (*UnimplementedPDServer) PutClusterConfig(ctx context.Context, req *PutClusterConfigRequest) (*PutClusterConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PutClusterConfig not implemented") +} +func (*UnimplementedPDServer) ScatterRegion(ctx context.Context, req *ScatterRegionRequest) (*ScatterRegionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ScatterRegion not implemented") +} +func (*UnimplementedPDServer) GetGCSafePoint(ctx context.Context, req *GetGCSafePointRequest) (*GetGCSafePointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePoint not implemented") +} +func (*UnimplementedPDServer) UpdateGCSafePoint(ctx context.Context, req *UpdateGCSafePointRequest) (*UpdateGCSafePointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePoint not implemented") +} +func (*UnimplementedPDServer) UpdateServiceGCSafePoint(ctx context.Context, req *UpdateServiceGCSafePointRequest) (*UpdateServiceGCSafePointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceGCSafePoint not implemented") +} +func (*UnimplementedPDServer) GetGCSafePointV2(ctx context.Context, req *GetGCSafePointV2Request) (*GetGCSafePointV2Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGCSafePointV2 not implemented") +} +func (*UnimplementedPDServer) WatchGCSafePointV2(req *WatchGCSafePointV2Request, srv PD_WatchGCSafePointV2Server) error { + return status.Errorf(codes.Unimplemented, "method WatchGCSafePointV2 not implemented") +} +func (*UnimplementedPDServer) UpdateGCSafePointV2(ctx context.Context, req *UpdateGCSafePointV2Request) (*UpdateGCSafePointV2Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateGCSafePointV2 not implemented") +} +func (*UnimplementedPDServer) UpdateServiceSafePointV2(ctx context.Context, req *UpdateServiceSafePointV2Request) (*UpdateServiceSafePointV2Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateServiceSafePointV2 not implemented") +} +func (*UnimplementedPDServer) GetAllGCSafePointV2(ctx context.Context, req *GetAllGCSafePointV2Request) (*GetAllGCSafePointV2Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAllGCSafePointV2 not implemented") +} +func (*UnimplementedPDServer) UpdateTxnSafePoint(ctx context.Context, req *UpdateTxnSafePointRequest) (*UpdateTxnSafePointResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateTxnSafePoint not implemented") +} +func (*UnimplementedPDServer) SetGCBarrier(ctx context.Context, req *SetGCBarrierRequest) (*SetGCBarrierResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetGCBarrier not implemented") +} +func (*UnimplementedPDServer) DeleteGCBarrier(ctx context.Context, req *DeleteGCBarrierRequest) (*DeleteGCBarrierResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteGCBarrier not implemented") +} +func (*UnimplementedPDServer) GetGCState(ctx context.Context, req *GetGCStateRequest) (*GetGCStateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetGCState not implemented") +} +func (*UnimplementedPDServer) SyncRegions(srv PD_SyncRegionsServer) error { + return status.Errorf(codes.Unimplemented, "method SyncRegions not implemented") +} +func (*UnimplementedPDServer) GetOperator(ctx context.Context, req *GetOperatorRequest) (*GetOperatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOperator not implemented") +} +func (*UnimplementedPDServer) SyncMaxTS(ctx context.Context, req *SyncMaxTSRequest) (*SyncMaxTSResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SyncMaxTS not implemented") +} +func (*UnimplementedPDServer) SplitRegions(ctx context.Context, req *SplitRegionsRequest) (*SplitRegionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SplitRegions not implemented") +} +func (*UnimplementedPDServer) SplitAndScatterRegions(ctx context.Context, req *SplitAndScatterRegionsRequest) (*SplitAndScatterRegionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SplitAndScatterRegions not implemented") +} +func (*UnimplementedPDServer) GetDCLocationInfo(ctx context.Context, req *GetDCLocationInfoRequest) (*GetDCLocationInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDCLocationInfo not implemented") +} +func (*UnimplementedPDServer) StoreGlobalConfig(ctx context.Context, req *StoreGlobalConfigRequest) (*StoreGlobalConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StoreGlobalConfig not implemented") +} +func (*UnimplementedPDServer) LoadGlobalConfig(ctx context.Context, req *LoadGlobalConfigRequest) (*LoadGlobalConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LoadGlobalConfig not implemented") +} +func (*UnimplementedPDServer) WatchGlobalConfig(req *WatchGlobalConfigRequest, srv PD_WatchGlobalConfigServer) error { + return status.Errorf(codes.Unimplemented, "method WatchGlobalConfig not implemented") +} +func (*UnimplementedPDServer) ReportBuckets(srv PD_ReportBucketsServer) error { + return status.Errorf(codes.Unimplemented, "method ReportBuckets not implemented") +} +func (*UnimplementedPDServer) ReportMinResolvedTS(ctx context.Context, req *ReportMinResolvedTsRequest) (*ReportMinResolvedTsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReportMinResolvedTS not implemented") +} +func (*UnimplementedPDServer) SetExternalTimestamp(ctx context.Context, req *SetExternalTimestampRequest) (*SetExternalTimestampResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetExternalTimestamp not implemented") +} +func (*UnimplementedPDServer) GetExternalTimestamp(ctx context.Context, req *GetExternalTimestampRequest) (*GetExternalTimestampResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExternalTimestamp not implemented") +} +func (*UnimplementedPDServer) GetMinTS(ctx context.Context, req *GetMinTSRequest) (*GetMinTSResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetMinTS not implemented") } -func (m *StoreGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func RegisterPDServer(s *grpc.Server, srv PDServer) { + s.RegisterService(&_PD_serviceDesc, srv) } -func (m *StoreGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ConfigPath) > 0 { - i -= len(m.ConfigPath) - copy(dAtA[i:], m.ConfigPath) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i-- - dAtA[i] = 0x12 +func _PD_GetClusterInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterInfoRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.Changes) > 0 { - for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if interceptor == nil { + return srv.(PDServer).GetClusterInfo(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetClusterInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetClusterInfo(ctx, req.(*GetClusterInfoRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StoreGlobalConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_GetMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMembersRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).GetMembers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetMembers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetMembers(ctx, req.(*GetMembersRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StoreGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_Tso_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).Tso(&pDTsoServer{stream}) } -func (m *StoreGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type PD_TsoServer interface { + Send(*TsoResponse) error + Recv() (*TsoRequest, error) + grpc.ServerStream } -func (m *LoadGlobalConfigRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type pDTsoServer struct { + grpc.ServerStream } -func (m *LoadGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *pDTsoServer) Send(m *TsoResponse) error { + return x.ServerStream.SendMsg(m) } -func (m *LoadGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ConfigPath) > 0 { - i -= len(m.ConfigPath) - copy(dAtA[i:], m.ConfigPath) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) - i-- - dAtA[i] = 0x12 - } - if len(m.Names) > 0 { - for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Names[iNdEx]) - copy(dAtA[i:], m.Names[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Names[iNdEx]))) - i-- - dAtA[i] = 0xa - } +func (x *pDTsoServer) Recv() (*TsoRequest, error) { + m := new(TsoRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err } - return len(dAtA) - i, nil + return m, nil } -func (m *LoadGlobalConfigResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_Bootstrap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BootstrapRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *LoadGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x10 + if interceptor == nil { + return srv.(PDServer).Bootstrap(ctx, in) } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/Bootstrap", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).Bootstrap(ctx, req.(*BootstrapRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GlobalConfigItem) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_IsBootstrapped_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsBootstrappedRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).IsBootstrapped(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/IsBootstrapped", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).IsBootstrapped(ctx, req.(*IsBootstrappedRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GlobalConfigItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_AllocID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AllocIDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).AllocID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/AllocID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).AllocID(ctx, req.(*AllocIDRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GlobalConfigItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0x2a - } - if m.Kind != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Kind)) - i-- - dAtA[i] = 0x20 +func _PD_IsSnapshotRecovering_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsSnapshotRecoveringRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(PDServer).IsSnapshotRecovering(ctx, in) } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/IsSnapshotRecovering", } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).IsSnapshotRecovering(ctx, req.(*IsSnapshotRecoveringRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *RequestHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_GetStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStoreRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).GetStore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetStore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetStore(ctx, req.(*GetStoreRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_PutStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PutStoreRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).PutStore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/PutStore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).PutStore(ctx, req.(*PutStoreRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CallerComponent) > 0 { - i -= len(m.CallerComponent) - copy(dAtA[i:], m.CallerComponent) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.CallerComponent))) - i-- - dAtA[i] = 0x22 +func _PD_GetAllStores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAllStoresRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.CallerId) > 0 { - i -= len(m.CallerId) - copy(dAtA[i:], m.CallerId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.CallerId))) - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(PDServer).GetAllStores(ctx, in) } - if m.SenderId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SenderId)) - i-- - dAtA[i] = 0x10 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetAllStores", } - if m.ClusterId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetAllStores(ctx, req.(*GetAllStoresRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_StoreHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StoreHeartbeatRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).StoreHeartbeat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/StoreHeartbeat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).StoreHeartbeat(ctx, req.(*StoreHeartbeatRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_RegionHeartbeat_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).RegionHeartbeat(&pDRegionHeartbeatServer{stream}) } -func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Error != nil { - { - size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ClusterId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil +type PD_RegionHeartbeatServer interface { + Send(*RegionHeartbeatResponse) error + Recv() (*RegionHeartbeatRequest, error) + grpc.ServerStream } -func (m *Error) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type pDRegionHeartbeatServer struct { + grpc.ServerStream } -func (m *Error) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *pDRegionHeartbeatServer) Send(m *RegionHeartbeatResponse) error { + return x.ServerStream.SendMsg(m) } -func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 +func (x *pDRegionHeartbeatServer) Recv() (*RegionHeartbeatRequest, error) { + m := new(RegionHeartbeatRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err } - return len(dAtA) - i, nil + return m, nil } -func (m *TsoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_GetRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRegionRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *TsoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TsoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DcLocation) > 0 { - i -= len(m.DcLocation) - copy(dAtA[i:], m.DcLocation) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(PDServer).GetRegion(ctx, in) } - if m.Count != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x10 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetRegion", } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetRegion(ctx, req.(*GetRegionRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *Timestamp) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_GetPrevRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRegionRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *Timestamp) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SuffixBits != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SuffixBits)) - i-- - dAtA[i] = 0x18 + if interceptor == nil { + return srv.(PDServer).GetPrevRegion(ctx, in) } - if m.Logical != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Logical)) - i-- - dAtA[i] = 0x10 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetPrevRegion", } - if m.Physical != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Physical)) - i-- - dAtA[i] = 0x8 + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetPrevRegion(ctx, req.(*GetRegionRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *TsoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_GetRegionByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRegionByIDRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *TsoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(PDServer).GetRegionByID(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetRegionByID", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetRegionByID(ctx, req.(*GetRegionByIDRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *TsoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Timestamp != nil { - { - size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a +func _PD_ScanRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ScanRegionsRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Count != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x10 + if interceptor == nil { + return srv.(PDServer).ScanRegions(ctx, in) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/ScanRegions", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).ScanRegions(ctx, req.(*ScanRegionsRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *BootstrapRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_BatchScanRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BatchScanRegionsRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).BatchScanRegions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/BatchScanRegions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).BatchScanRegions(ctx, req.(*BatchScanRegionsRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *BootstrapRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BootstrapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a +func _PD_AskSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AskSplitRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Store != nil { - { - size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(PDServer).AskSplit(ctx, in) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/AskSplit", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).AskSplit(ctx, req.(*AskSplitRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *BootstrapResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_ReportSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReportSplitRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *BootstrapResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BootstrapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ReplicationStatus != nil { - { - size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + if interceptor == nil { + return srv.(PDServer).ReportSplit(ctx, in) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/ReportSplit", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).ReportSplit(ctx, req.(*ReportSplitRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *IsBootstrappedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_AskBatchSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AskBatchSplitRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *IsBootstrappedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IsBootstrappedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(PDServer).AskBatchSplit(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/AskBatchSplit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).AskBatchSplit(ctx, req.(*AskBatchSplitRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *IsBootstrappedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_ReportBatchSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReportBatchSplitRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *IsBootstrappedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(PDServer).ReportBatchSplit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/ReportBatchSplit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).ReportBatchSplit(ctx, req.(*ReportBatchSplitRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *IsBootstrappedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Bootstrapped { - i-- - if m.Bootstrapped { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 +func _PD_GetClusterConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClusterConfigRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(PDServer).GetClusterConfig(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetClusterConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetClusterConfig(ctx, req.(*GetClusterConfigRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *AllocIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_PutClusterConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PutClusterConfigRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).PutClusterConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/PutClusterConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).PutClusterConfig(ctx, req.(*PutClusterConfigRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *AllocIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_ScatterRegion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ScatterRegionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).ScatterRegion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/ScatterRegion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).ScatterRegion(ctx, req.(*ScatterRegionRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *AllocIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func _PD_GetGCSafePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetGCSafePointRequest) + if err := dec(in); err != nil { + return nil, err } - return len(dAtA) - i, nil + if interceptor == nil { + return srv.(PDServer).GetGCSafePoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetGCSafePoint", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetGCSafePoint(ctx, req.(*GetGCSafePointRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *AllocIDResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_UpdateGCSafePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateGCSafePointRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).UpdateGCSafePoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/UpdateGCSafePoint", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).UpdateGCSafePoint(ctx, req.(*UpdateGCSafePointRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *AllocIDResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_UpdateServiceGCSafePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateServiceGCSafePointRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).UpdateServiceGCSafePoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/UpdateServiceGCSafePoint", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).UpdateServiceGCSafePoint(ctx, req.(*UpdateServiceGCSafePointRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *AllocIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Id != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Id)) - i-- - dAtA[i] = 0x10 +func _PD_GetGCSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetGCSafePointV2Request) + if err := dec(in); err != nil { + return nil, err } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(PDServer).GetGCSafePointV2(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetGCSafePointV2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetGCSafePointV2(ctx, req.(*GetGCSafePointV2Request)) + } + return interceptor(ctx, in, info, handler) } -func (m *IsSnapshotRecoveringRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func _PD_WatchGCSafePointV2_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchGCSafePointV2Request) + if err := stream.RecvMsg(m); err != nil { + return err } - return dAtA[:n], nil + return srv.(PDServer).WatchGCSafePointV2(m, &pDWatchGCSafePointV2Server{stream}) } -func (m *IsSnapshotRecoveringRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type PD_WatchGCSafePointV2Server interface { + Send(*WatchGCSafePointV2Response) error + grpc.ServerStream } -func (m *IsSnapshotRecoveringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type pDWatchGCSafePointV2Server struct { + grpc.ServerStream } -func (m *IsSnapshotRecoveringResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func (x *pDWatchGCSafePointV2Server) Send(m *WatchGCSafePointV2Response) error { + return x.ServerStream.SendMsg(m) +} + +func _PD_UpdateGCSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateGCSafePointV2Request) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).UpdateGCSafePointV2(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/UpdateGCSafePointV2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).UpdateGCSafePointV2(ctx, req.(*UpdateGCSafePointV2Request)) + } + return interceptor(ctx, in, info, handler) } -func (m *IsSnapshotRecoveringResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_UpdateServiceSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateServiceSafePointV2Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).UpdateServiceSafePointV2(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/UpdateServiceSafePointV2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).UpdateServiceSafePointV2(ctx, req.(*UpdateServiceSafePointV2Request)) + } + return interceptor(ctx, in, info, handler) } -func (m *IsSnapshotRecoveringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Marked { - i-- - if m.Marked { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 +func _PD_GetAllGCSafePointV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAllGCSafePointV2Request) + if err := dec(in); err != nil { + return nil, err } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(PDServer).GetAllGCSafePointV2(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetAllGCSafePointV2", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetAllGCSafePointV2(ctx, req.(*GetAllGCSafePointV2Request)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetStoreRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_UpdateTxnSafePoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateTxnSafePointRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).UpdateTxnSafePoint(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/UpdateTxnSafePoint", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).UpdateTxnSafePoint(ctx, req.(*UpdateTxnSafePointRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetStoreRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_SetGCBarrier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetGCBarrierRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).SetGCBarrier(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/SetGCBarrier", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).SetGCBarrier(ctx, req.(*SetGCBarrierRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x10 +func _PD_DeleteGCBarrier_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteGCBarrierRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(PDServer).DeleteGCBarrier(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/DeleteGCBarrier", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).DeleteGCBarrier(ctx, req.(*DeleteGCBarrierRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetStoreResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_GetGCState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetGCStateRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *GetStoreResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Stats != nil { - { - size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(PDServer).GetGCState(ctx, in) } - if m.Store != nil { - { - size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetGCState", } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetGCState(ctx, req.(*GetGCStateRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *PutStoreRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func _PD_SyncRegions_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).SyncRegions(&pDSyncRegionsServer{stream}) } -func (m *PutStoreRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type PD_SyncRegionsServer interface { + Send(*SyncRegionResponse) error + Recv() (*SyncRegionRequest, error) + grpc.ServerStream } -func (m *PutStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Store != nil { - { - size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type pDSyncRegionsServer struct { + grpc.ServerStream } -func (m *PutStoreResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *pDSyncRegionsServer) Send(m *SyncRegionResponse) error { + return x.ServerStream.SendMsg(m) } -func (m *PutStoreResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *pDSyncRegionsServer) Recv() (*SyncRegionRequest, error) { + m := new(SyncRegionRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } -func (m *PutStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ReplicationStatus != nil { - { - size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func _PD_GetOperator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOperatorRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(PDServer).GetOperator(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetOperator", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetOperator(ctx, req.(*GetOperatorRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetAllStoresRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_SyncMaxTS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SyncMaxTSRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *GetAllStoresRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllStoresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ExcludeTombstoneStores { - i-- - if m.ExcludeTombstoneStores { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 + if interceptor == nil { + return srv.(PDServer).SyncMaxTS(ctx, in) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/SyncMaxTS", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).SyncMaxTS(ctx, req.(*SyncMaxTSRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetAllStoresResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_SplitRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SplitRegionsRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *GetAllStoresResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAllStoresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Stores) > 0 { - for iNdEx := len(m.Stores) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Stores[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if interceptor == nil { + return srv.(PDServer).SplitRegions(ctx, in) } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/SplitRegions", } - return len(dAtA) - i, nil + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).SplitRegions(ctx, req.(*SplitRegionsRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_SplitAndScatterRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SplitAndScatterRegionsRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *GetRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NeedBuckets { - i-- - if m.NeedBuckets { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 + if interceptor == nil { + return srv.(PDServer).SplitAndScatterRegions(ctx, in) } - if len(m.RegionKey) > 0 { - i -= len(m.RegionKey) - copy(dAtA[i:], m.RegionKey) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.RegionKey))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/SplitAndScatterRegions", } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).SplitAndScatterRegions(ctx, req.(*SplitAndScatterRegionsRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *GetRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_GetDCLocationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDCLocationInfoRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *GetRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(PDServer).GetDCLocationInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetDCLocationInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetDCLocationInfo(ctx, req.(*GetDCLocationInfoRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Buckets != nil { - { - size, err := m.Buckets.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a +func _PD_StoreGlobalConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StoreGlobalConfigRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.PendingPeers) > 0 { - for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } + if interceptor == nil { + return srv.(PDServer).StoreGlobalConfig(ctx, in) } - if len(m.DownPeers) > 0 { - for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/StoreGlobalConfig", } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).StoreGlobalConfig(ctx, req.(*StoreGlobalConfigRequest)) } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + return interceptor(ctx, in, info, handler) +} + +func _PD_LoadGlobalConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoadGlobalConfigRequest) + if err := dec(in); err != nil { + return nil, err } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(PDServer).LoadGlobalConfig(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/LoadGlobalConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).LoadGlobalConfig(ctx, req.(*LoadGlobalConfigRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *GetRegionByIDRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func _PD_WatchGlobalConfig_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WatchGlobalConfigRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - return dAtA[:n], nil + return srv.(PDServer).WatchGlobalConfig(m, &pDWatchGlobalConfigServer{stream}) } -func (m *GetRegionByIDRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type PD_WatchGlobalConfigServer interface { + Send(*WatchGlobalConfigResponse) error + grpc.ServerStream } -func (m *GetRegionByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NeedBuckets { - i-- - if m.NeedBuckets { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type pDWatchGlobalConfigServer struct { + grpc.ServerStream } -func (m *ScanRegionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *pDWatchGlobalConfigServer) Send(m *WatchGlobalConfigResponse) error { + return x.ServerStream.SendMsg(m) } -func (m *ScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_ReportBuckets_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PDServer).ReportBuckets(&pDReportBucketsServer{stream}) } -func (m *ScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) - i-- - dAtA[i] = 0x22 - } - if m.Limit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 - } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.StartKey))) - i-- - dAtA[i] = 0x12 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type PD_ReportBucketsServer interface { + SendAndClose(*ReportBucketsResponse) error + Recv() (*ReportBucketsRequest, error) + grpc.ServerStream } -func (m *Region) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +type pDReportBucketsServer struct { + grpc.ServerStream } -func (m *Region) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *pDReportBucketsServer) SendAndClose(m *ReportBucketsResponse) error { + return x.ServerStream.SendMsg(m) } -func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Buckets != nil { - { - size, err := m.Buckets.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a +func (x *pDReportBucketsServer) Recv() (*ReportBucketsRequest, error) { + m := new(ReportBucketsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err } - if len(m.PendingPeers) > 0 { - for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + return m, nil +} + +func _PD_ReportMinResolvedTS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReportMinResolvedTsRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.DownPeers) > 0 { - for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if interceptor == nil { + return srv.(PDServer).ReportMinResolvedTS(ctx, in) } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/ReportMinResolvedTS", } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).ReportMinResolvedTS(ctx, req.(*ReportMinResolvedTsRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *ScanRegionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _PD_SetExternalTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetExternalTimestampRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(PDServer).SetExternalTimestamp(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/SetExternalTimestamp", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).SetExternalTimestamp(ctx, req.(*SetExternalTimestampRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *ScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _PD_GetExternalTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExternalTimestampRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PDServer).GetExternalTimestamp(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetExternalTimestamp", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetExternalTimestamp(ctx, req.(*GetExternalTimestampRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *ScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } +func _PD_GetMinTS_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetMinTSRequest) + if err := dec(in); err != nil { + return nil, err } - if len(m.Leaders) > 0 { - for iNdEx := len(m.Leaders) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Leaders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if interceptor == nil { + return srv.(PDServer).GetMinTS(ctx, in) } - if len(m.RegionMetas) > 0 { - for iNdEx := len(m.RegionMetas) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RegionMetas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pdpb.PD/GetMinTS", } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PDServer).GetMinTS(ctx, req.(*GetMinTSRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *KeyRange) Marshal() (dAtA []byte, err error) { +var _PD_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pdpb.PD", + HandlerType: (*PDServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetClusterInfo", + Handler: _PD_GetClusterInfo_Handler, + }, + { + MethodName: "GetMembers", + Handler: _PD_GetMembers_Handler, + }, + { + MethodName: "Bootstrap", + Handler: _PD_Bootstrap_Handler, + }, + { + MethodName: "IsBootstrapped", + Handler: _PD_IsBootstrapped_Handler, + }, + { + MethodName: "AllocID", + Handler: _PD_AllocID_Handler, + }, + { + MethodName: "IsSnapshotRecovering", + Handler: _PD_IsSnapshotRecovering_Handler, + }, + { + MethodName: "GetStore", + Handler: _PD_GetStore_Handler, + }, + { + MethodName: "PutStore", + Handler: _PD_PutStore_Handler, + }, + { + MethodName: "GetAllStores", + Handler: _PD_GetAllStores_Handler, + }, + { + MethodName: "StoreHeartbeat", + Handler: _PD_StoreHeartbeat_Handler, + }, + { + MethodName: "GetRegion", + Handler: _PD_GetRegion_Handler, + }, + { + MethodName: "GetPrevRegion", + Handler: _PD_GetPrevRegion_Handler, + }, + { + MethodName: "GetRegionByID", + Handler: _PD_GetRegionByID_Handler, + }, + { + MethodName: "ScanRegions", + Handler: _PD_ScanRegions_Handler, + }, + { + MethodName: "BatchScanRegions", + Handler: _PD_BatchScanRegions_Handler, + }, + { + MethodName: "AskSplit", + Handler: _PD_AskSplit_Handler, + }, + { + MethodName: "ReportSplit", + Handler: _PD_ReportSplit_Handler, + }, + { + MethodName: "AskBatchSplit", + Handler: _PD_AskBatchSplit_Handler, + }, + { + MethodName: "ReportBatchSplit", + Handler: _PD_ReportBatchSplit_Handler, + }, + { + MethodName: "GetClusterConfig", + Handler: _PD_GetClusterConfig_Handler, + }, + { + MethodName: "PutClusterConfig", + Handler: _PD_PutClusterConfig_Handler, + }, + { + MethodName: "ScatterRegion", + Handler: _PD_ScatterRegion_Handler, + }, + { + MethodName: "GetGCSafePoint", + Handler: _PD_GetGCSafePoint_Handler, + }, + { + MethodName: "UpdateGCSafePoint", + Handler: _PD_UpdateGCSafePoint_Handler, + }, + { + MethodName: "UpdateServiceGCSafePoint", + Handler: _PD_UpdateServiceGCSafePoint_Handler, + }, + { + MethodName: "GetGCSafePointV2", + Handler: _PD_GetGCSafePointV2_Handler, + }, + { + MethodName: "UpdateGCSafePointV2", + Handler: _PD_UpdateGCSafePointV2_Handler, + }, + { + MethodName: "UpdateServiceSafePointV2", + Handler: _PD_UpdateServiceSafePointV2_Handler, + }, + { + MethodName: "GetAllGCSafePointV2", + Handler: _PD_GetAllGCSafePointV2_Handler, + }, + { + MethodName: "UpdateTxnSafePoint", + Handler: _PD_UpdateTxnSafePoint_Handler, + }, + { + MethodName: "SetGCBarrier", + Handler: _PD_SetGCBarrier_Handler, + }, + { + MethodName: "DeleteGCBarrier", + Handler: _PD_DeleteGCBarrier_Handler, + }, + { + MethodName: "GetGCState", + Handler: _PD_GetGCState_Handler, + }, + { + MethodName: "GetOperator", + Handler: _PD_GetOperator_Handler, + }, + { + MethodName: "SyncMaxTS", + Handler: _PD_SyncMaxTS_Handler, + }, + { + MethodName: "SplitRegions", + Handler: _PD_SplitRegions_Handler, + }, + { + MethodName: "SplitAndScatterRegions", + Handler: _PD_SplitAndScatterRegions_Handler, + }, + { + MethodName: "GetDCLocationInfo", + Handler: _PD_GetDCLocationInfo_Handler, + }, + { + MethodName: "StoreGlobalConfig", + Handler: _PD_StoreGlobalConfig_Handler, + }, + { + MethodName: "LoadGlobalConfig", + Handler: _PD_LoadGlobalConfig_Handler, + }, + { + MethodName: "ReportMinResolvedTS", + Handler: _PD_ReportMinResolvedTS_Handler, + }, + { + MethodName: "SetExternalTimestamp", + Handler: _PD_SetExternalTimestamp_Handler, + }, + { + MethodName: "GetExternalTimestamp", + Handler: _PD_GetExternalTimestamp_Handler, + }, + { + MethodName: "GetMinTS", + Handler: _PD_GetMinTS_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Tso", + Handler: _PD_Tso_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "RegionHeartbeat", + Handler: _PD_RegionHeartbeat_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "WatchGCSafePointV2", + Handler: _PD_WatchGCSafePointV2_Handler, + ServerStreams: true, + }, + { + StreamName: "SyncRegions", + Handler: _PD_SyncRegions_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "WatchGlobalConfig", + Handler: _PD_WatchGlobalConfig_Handler, + ServerStreams: true, + }, + { + StreamName: "ReportBuckets", + Handler: _PD_ReportBuckets_Handler, + ClientStreams: true, + }, + }, + Metadata: "pdpb.proto", +} + +func (m *WatchGlobalConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12146,34 +11247,32 @@ func (m *KeyRange) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *KeyRange) MarshalTo(dAtA []byte) (int, error) { +func (m *WatchGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *WatchGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.EndKey) > 0 { - i -= len(m.EndKey) - copy(dAtA[i:], m.EndKey) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if len(m.StartKey) > 0 { - i -= len(m.StartKey) - copy(dAtA[i:], m.StartKey) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.StartKey))) + if len(m.ConfigPath) > 0 { + i -= len(m.ConfigPath) + copy(dAtA[i:], m.ConfigPath) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *BatchScanRegionsRequest) Marshal() (dAtA []byte, err error) { +func (m *WatchGlobalConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12183,35 +11282,37 @@ func (m *BatchScanRegionsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *WatchGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *WatchGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ContainAllKeyRange { - i-- - if m.ContainAllKeyRange { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x28 + dAtA[i] = 0x1a } - if m.Limit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x10 } - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12219,35 +11320,13 @@ func (m *BatchScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - } - } - if m.NeedBuckets { - i-- - if m.NeedBuckets { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *BatchScanRegionsResponse) Marshal() (dAtA []byte, err error) { +func (m *StoreGlobalConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12257,20 +11336,27 @@ func (m *BatchScanRegionsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *StoreGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StoreGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { + if len(m.ConfigPath) > 0 { + i -= len(m.ConfigPath) + copy(dAtA[i:], m.ConfigPath) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) + i-- + dAtA[i] = 0x12 + } + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12278,25 +11364,13 @@ func (m *BatchScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 - } - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetClusterConfigRequest) Marshal() (dAtA []byte, err error) { +func (m *StoreGlobalConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12306,19 +11380,19 @@ func (m *GetClusterConfigRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StoreGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StoreGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { + if m.Error != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12331,7 +11405,7 @@ func (m *GetClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *GetClusterConfigResponse) Marshal() (dAtA []byte, err error) { +func (m *LoadGlobalConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12341,44 +11415,36 @@ func (m *GetClusterConfigResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *LoadGlobalConfigRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *LoadGlobalConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Cluster != nil { - { - size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if len(m.ConfigPath) > 0 { + i -= len(m.ConfigPath) + copy(dAtA[i:], m.ConfigPath) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ConfigPath))) i-- dAtA[i] = 0x12 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.Names) > 0 { + for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Names[iNdEx]) + copy(dAtA[i:], m.Names[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Names[iNdEx]))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PutClusterConfigRequest) Marshal() (dAtA []byte, err error) { +func (m *LoadGlobalConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12388,44 +11454,39 @@ func (m *PutClusterConfigRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PutClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *LoadGlobalConfigResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PutClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *LoadGlobalConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Cluster != nil { - { - size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PutClusterConfigResponse) Marshal() (dAtA []byte, err error) { +func (m *GlobalConfigItem) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12435,19 +11496,31 @@ func (m *PutClusterConfigResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PutClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GlobalConfigItem) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PutClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GlobalConfigItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0x2a + } + if m.Kind != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Kind)) + i-- + dAtA[i] = 0x20 + } + if m.Error != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12455,12 +11528,26 @@ func (m *PutClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x1a + } + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Member) Marshal() (dAtA []byte, err error) { +func (m *RequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12470,83 +11557,44 @@ func (m *Member) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Member) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.DcLocation) > 0 { - i -= len(m.DcLocation) - copy(dAtA[i:], m.DcLocation) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + if len(m.CallerComponent) > 0 { + i -= len(m.CallerComponent) + copy(dAtA[i:], m.CallerComponent) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.CallerComponent))) i-- - dAtA[i] = 0x4a + dAtA[i] = 0x22 } - if len(m.GitHash) > 0 { - i -= len(m.GitHash) - copy(dAtA[i:], m.GitHash) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) + if len(m.CallerId) > 0 { + i -= len(m.CallerId) + copy(dAtA[i:], m.CallerId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.CallerId))) i-- - dAtA[i] = 0x42 + dAtA[i] = 0x1a } - if len(m.BinaryVersion) > 0 { - i -= len(m.BinaryVersion) - copy(dAtA[i:], m.BinaryVersion) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.BinaryVersion))) + if m.SenderId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SenderId)) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x10 } - if len(m.DeployPath) > 0 { - i -= len(m.DeployPath) - copy(dAtA[i:], m.DeployPath) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DeployPath))) - i-- - dAtA[i] = 0x32 - } - if m.LeaderPriority != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.LeaderPriority)) - i-- - dAtA[i] = 0x28 - } - if len(m.ClientUrls) > 0 { - for iNdEx := len(m.ClientUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ClientUrls[iNdEx]) - copy(dAtA[i:], m.ClientUrls[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClientUrls[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.PeerUrls) > 0 { - for iNdEx := len(m.PeerUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PeerUrls[iNdEx]) - copy(dAtA[i:], m.PeerUrls[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.PeerUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.MemberId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MemberId)) - i-- - dAtA[i] = 0x10 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) + if m.ClusterId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetMembersRequest) Marshal() (dAtA []byte, err error) { +func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12556,19 +11604,19 @@ func (m *GetMembersRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetMembersRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { + if m.Error != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12576,12 +11624,17 @@ func (m *GetMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.ClusterId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ClusterId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetMembersResponse) Marshal() (dAtA []byte, err error) { +func (m *Error) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12591,96 +11644,32 @@ func (m *GetMembersResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetMembersResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *Error) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TsoAllocatorLeaders) > 0 { - for k := range m.TsoAllocatorLeaders { - v := m.TsoAllocatorLeaders[k] - baseI := i - if v != nil { - { - size, err := v.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintPdpb(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintPdpb(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if m.EtcdLeader != nil { - { - size, err := m.EtcdLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Message))) i-- - dAtA[i] = 0x1a - } - if len(m.Members) > 0 { - for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + dAtA[i] = 0x12 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.Type != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { +func (m *TsoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12690,16 +11679,28 @@ func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *TsoRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TsoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.DcLocation) > 0 { + i -= len(m.DcLocation) + copy(dAtA[i:], m.DcLocation) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + i-- + dAtA[i] = 0x1a + } + if m.Count != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) + i-- + dAtA[i] = 0x10 + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -12715,7 +11716,7 @@ func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { +func (m *Timestamp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12725,59 +11726,35 @@ func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *Timestamp) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TsoUrls) > 0 { - for iNdEx := len(m.TsoUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TsoUrls[iNdEx]) - copy(dAtA[i:], m.TsoUrls[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.TsoUrls[iNdEx]))) - i-- - dAtA[i] = 0x1a - } + if m.SuffixBits != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SuffixBits)) + i-- + dAtA[i] = 0x18 } - if len(m.ServiceModes) > 0 { - dAtA55 := make([]byte, len(m.ServiceModes)*10) - var j54 int - for _, num := range m.ServiceModes { - for num >= 1<<7 { - dAtA55[j54] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j54++ - } - dAtA55[j54] = uint8(num) - j54++ - } - i -= j54 - copy(dAtA[i:], dAtA55[:j54]) - i = encodeVarintPdpb(dAtA, i, uint64(j54)) + if m.Logical != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Logical)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.Physical != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Physical)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *PeerStats) Marshal() (dAtA []byte, err error) { +func (m *TsoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12787,24 +11764,36 @@ func (m *PeerStats) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PeerStats) MarshalTo(dAtA []byte) (int, error) { +func (m *TsoResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PeerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TsoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.DownSeconds != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) + if m.Timestamp != nil { + { + size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Count != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Count)) i-- dAtA[i] = 0x10 } - if m.Peer != nil { + if m.Header != nil { { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12817,7 +11806,7 @@ func (m *PeerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { +func (m *BootstrapRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12827,33 +11816,19 @@ func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RegionHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *BootstrapRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RegionHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BootstrapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ApproximateKvSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKvSize)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 - } - if m.CpuUsage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.CpuUsage)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.QueryStats != nil { + if m.Region != nil { { - size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12861,13 +11836,11 @@ func (m *RegionHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 + dAtA[i] = 0x1a } - if m.ReplicationStatus != nil { + if m.Store != nil { { - size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12875,21 +11848,11 @@ func (m *RegionHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x7a - } - if m.Term != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Term)) - i-- - dAtA[i] = 0x70 - } - if m.ApproximateKeys != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKeys)) - i-- - dAtA[i] = 0x68 + dAtA[i] = 0x12 } - if m.Interval != nil { + if m.Header != nil { { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12897,76 +11860,34 @@ func (m *RegionHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x62 - } - if m.ApproximateSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateSize)) - i-- - dAtA[i] = 0x50 - } - if m.KeysRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - i-- - dAtA[i] = 0x48 - } - if m.KeysWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - i-- - dAtA[i] = 0x40 - } - if m.BytesRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - i-- - dAtA[i] = 0x38 - } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x30 - } - if len(m.PendingPeers) > 0 { - for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.DownPeers) > 0 { - for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } + dAtA[i] = 0xa } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + return len(dAtA) - i, nil +} + +func (m *BootstrapResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if m.Region != nil { + return dAtA[:n], nil +} + +func (m *BootstrapResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BootstrapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReplicationStatus != nil { { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -12991,7 +11912,7 @@ func (m *RegionHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *ChangePeer) Marshal() (dAtA []byte, err error) { +func (m *IsBootstrappedRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13001,24 +11922,19 @@ func (m *ChangePeer) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ChangePeer) MarshalTo(dAtA []byte) (int, error) { +func (m *IsBootstrappedRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ChangePeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *IsBootstrappedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ChangeType != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ChangeType)) - i-- - dAtA[i] = 0x10 - } - if m.Peer != nil { + if m.Header != nil { { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13031,7 +11947,7 @@ func (m *ChangePeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ChangePeerV2) Marshal() (dAtA []byte, err error) { +func (m *IsBootstrappedResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13041,34 +11957,42 @@ func (m *ChangePeerV2) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ChangePeerV2) MarshalTo(dAtA []byte) (int, error) { +func (m *IsBootstrappedResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ChangePeerV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *IsBootstrappedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Changes) > 0 { - for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Bootstrapped { + i-- + if m.Bootstrapped { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *TransferLeader) Marshal() (dAtA []byte, err error) { +func (m *AllocIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13078,33 +12002,19 @@ func (m *TransferLeader) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TransferLeader) MarshalTo(dAtA []byte) (int, error) { +func (m *AllocIDRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TransferLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AllocIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Peers) > 0 { - for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Peer != nil { + if m.Header != nil { { - size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13117,7 +12027,7 @@ func (m *TransferLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Merge) Marshal() (dAtA []byte, err error) { +func (m *AllocIDResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13127,19 +12037,24 @@ func (m *Merge) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Merge) MarshalTo(dAtA []byte) (int, error) { +func (m *AllocIDResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Merge) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AllocIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Target != nil { + if m.Id != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13152,7 +12067,7 @@ func (m *Merge) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SplitRegion) Marshal() (dAtA []byte, err error) { +func (m *IsSnapshotRecoveringRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13162,34 +12077,32 @@ func (m *SplitRegion) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SplitRegion) MarshalTo(dAtA []byte) (int, error) { +func (m *IsSnapshotRecoveringRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SplitRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *IsSnapshotRecoveringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x12 + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - } - if m.Policy != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Policy)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SwitchWitness) Marshal() (dAtA []byte, err error) { +func (m *IsSnapshotRecoveringResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13199,19 +12112,19 @@ func (m *SwitchWitness) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SwitchWitness) MarshalTo(dAtA []byte) (int, error) { +func (m *IsSnapshotRecoveringResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *IsSnapshotRecoveringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.IsWitness { + if m.Marked { i-- - if m.IsWitness { + if m.Marked { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -13219,15 +12132,22 @@ func (m *SwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if m.PeerId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.PeerId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *BatchSwitchWitness) Marshal() (dAtA []byte, err error) { +func (m *GetStoreRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13237,34 +12157,37 @@ func (m *BatchSwitchWitness) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchSwitchWitness) MarshalTo(dAtA []byte) (int, error) { +func (m *GetStoreRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BatchSwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.SwitchWitnesses) > 0 { - for iNdEx := len(m.SwitchWitnesses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SwitchWitnesses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.StoreId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { +func (m *GetStoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13274,55 +12197,19 @@ func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RegionHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetStoreResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SwitchWitnesses != nil { - { - size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.ChangePeerV2 != nil { - { - size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.SplitRegion != nil { - { - size, err := m.SplitRegion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.Merge != nil { + if m.Stats != nil { { - size, err := m.Merge.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13330,11 +12217,11 @@ func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x1a } - if m.TargetPeer != nil { + if m.Store != nil { { - size, err := m.TargetPeer.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13342,11 +12229,11 @@ func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x12 } - if m.RegionEpoch != nil { + if m.Header != nil { { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13354,28 +12241,34 @@ func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a - } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x20 + dAtA[i] = 0xa } - if m.TransferLeader != nil { - { - size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + return len(dAtA) - i, nil +} + +func (m *PutStoreRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if m.ChangePeer != nil { + return dAtA[:n], nil +} + +func (m *PutStoreRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PutStoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Store != nil { { - size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13400,7 +12293,7 @@ func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *AskSplitRequest) Marshal() (dAtA []byte, err error) { +func (m *PutStoreResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13410,19 +12303,19 @@ func (m *AskSplitRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AskSplitRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PutStoreResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AskSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PutStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Region != nil { + if m.ReplicationStatus != nil { { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13447,7 +12340,7 @@ func (m *AskSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *AskSplitResponse) Marshal() (dAtA []byte, err error) { +func (m *GetAllStoresRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13457,36 +12350,23 @@ func (m *AskSplitResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AskSplitResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetAllStoresRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AskSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetAllStoresRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewPeerIds) > 0 { - dAtA79 := make([]byte, len(m.NewPeerIds)*10) - var j78 int - for _, num := range m.NewPeerIds { - for num >= 1<<7 { - dAtA79[j78] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j78++ - } - dAtA79[j78] = uint8(num) - j78++ - } - i -= j78 - copy(dAtA[i:], dAtA79[:j78]) - i = encodeVarintPdpb(dAtA, i, uint64(j78)) + if m.ExcludeTombstoneStores { i-- - dAtA[i] = 0x1a - } - if m.NewRegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) + if m.ExcludeTombstoneStores { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x10 } @@ -13505,7 +12385,7 @@ func (m *AskSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error) { +func (m *GetAllStoresResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13515,39 +12395,29 @@ func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetAllStoresResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ReportSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetAllStoresResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Right != nil { - { - size, err := m.Right.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Left != nil { - { - size, err := m.Left.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Stores) > 0 { + for iNdEx := len(m.Stores) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Stores[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 } if m.Header != nil { { @@ -13564,7 +12434,7 @@ func (m *ReportSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error) { +func (m *GetRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13574,16 +12444,33 @@ func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetRegionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ReportSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.NeedBuckets { + i-- + if m.NeedBuckets { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.RegionKey) > 0 { + i -= len(m.RegionKey) + copy(dAtA[i:], m.RegionKey) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.RegionKey))) + i-- + dAtA[i] = 0x12 + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -13599,7 +12486,7 @@ func (m *ReportSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { +func (m *GetRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13609,20 +12496,67 @@ func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AskBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetRegionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AskBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SplitCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) + if m.Buckets != nil { + { + size, err := m.Buckets.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x3a + } + if len(m.PendingPeers) > 0 { + for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.DownPeers) > 0 { + for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.Leader != nil { + { + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } if m.Region != nil { { @@ -13651,7 +12585,7 @@ func (m *AskBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SplitID) Marshal() (dAtA []byte, err error) { +func (m *GetRegionByIDRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13661,43 +12595,47 @@ func (m *SplitID) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SplitID) MarshalTo(dAtA []byte) (int, error) { +func (m *GetRegionByIDRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetRegionByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NewPeerIds) > 0 { - dAtA88 := make([]byte, len(m.NewPeerIds)*10) - var j87 int - for _, num := range m.NewPeerIds { - for num >= 1<<7 { - dAtA88[j87] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j87++ - } - dAtA88[j87] = uint8(num) - j87++ + if m.NeedBuckets { + i-- + if m.NeedBuckets { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= j87 - copy(dAtA[i:], dAtA88[:j87]) - i = encodeVarintPdpb(dAtA, i, uint64(j87)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x18 } - if m.NewRegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { +func (m *ScanRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13707,29 +12645,34 @@ func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AskBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *ScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AskBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ids[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) + i-- + dAtA[i] = 0x22 + } + if m.Limit != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x18 + } + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0x12 } if m.Header != nil { { @@ -13746,7 +12689,7 @@ func (m *AskBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ReportBatchSplitRequest) Marshal() (dAtA []byte, err error) { +func (m *Region) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13756,20 +12699,32 @@ func (m *ReportBatchSplitRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReportBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *Region) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ReportBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { + if m.Buckets != nil { + { + size, err := m.Buckets.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.PendingPeers) > 0 { + for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13777,12 +12732,38 @@ func (m *ReportBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 } } - if m.Header != nil { + if len(m.DownPeers) > 0 { + for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Leader != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13795,7 +12776,7 @@ func (m *ReportBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *ReportBatchSplitResponse) Marshal() (dAtA []byte, err error) { +func (m *ScanRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13805,16 +12786,58 @@ func (m *ReportBatchSplitResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReportBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *ScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ReportBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Regions) > 0 { + for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Leaders) > 0 { + for iNdEx := len(m.Leaders) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Leaders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RegionMetas) > 0 { + for iNdEx := len(m.RegionMetas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RegionMetas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -13830,7 +12853,7 @@ func (m *ReportBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *TimeInterval) Marshal() (dAtA []byte, err error) { +func (m *KeyRange) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13840,30 +12863,34 @@ func (m *TimeInterval) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TimeInterval) MarshalTo(dAtA []byte) (int, error) { +func (m *KeyRange) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TimeInterval) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *KeyRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.EndTimestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.EndTimestamp)) + if len(m.EndKey) > 0 { + i -= len(m.EndKey) + copy(dAtA[i:], m.EndKey) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.EndKey))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if m.StartTimestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartTimestamp)) - i-- - dAtA[i] = 0x8 + if len(m.StartKey) > 0 { + i -= len(m.StartKey) + copy(dAtA[i:], m.StartKey) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.StartKey))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RecordPair) Marshal() (dAtA []byte, err error) { +func (m *BatchScanRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13873,32 +12900,71 @@ func (m *RecordPair) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RecordPair) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchScanRegionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RecordPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchScanRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Value != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Value)) + if m.ContainAllKeyRange { + i-- + if m.ContainAllKeyRange { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Limit != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x20 + } + if len(m.Ranges) > 0 { + for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.NeedBuckets { + i-- + if m.NeedBuckets { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x10 } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Key))) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PeerStat) Marshal() (dAtA []byte, err error) { +func (m *BatchScanRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13908,29 +12974,33 @@ func (m *PeerStat) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PeerStat) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchScanRegionsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PeerStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchScanRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.WrittenBytes != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenBytes)) - i-- - dAtA[i] = 0x30 - } - if m.WrittenKeys != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) - i-- - dAtA[i] = 0x28 + if len(m.Regions) > 0 { + for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.QueryStats != nil { + if m.Header != nil { { - size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -13938,27 +13008,12 @@ func (m *PeerStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 - } - if m.ReadBytes != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ReadBytes)) - i-- - dAtA[i] = 0x18 - } - if m.ReadKeys != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ReadKeys)) - i-- - dAtA[i] = 0x10 - } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *StoreStats) Marshal() (dAtA []byte, err error) { +func (m *GetClusterConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -13968,45 +13023,19 @@ func (m *StoreStats) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StoreStats) MarshalTo(dAtA []byte) (int, error) { +func (m *GetClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StoreStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.UsedMemory != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.UsedMemory)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe8 - } - if m.TotalMemory != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TotalMemory)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe0 - } - if m.IsGrpcPaused { - i-- - if m.IsGrpcPaused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd8 - } - if m.SlowTrend != nil { + if m.Header != nil { { - size, err := m.SlowTrend.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14014,68 +13043,46 @@ func (m *StoreStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd2 - } - if len(m.SnapshotStats) > 0 { - for iNdEx := len(m.SnapshotStats) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SnapshotStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca - } + dAtA[i] = 0xa } - if m.IsApplyBusy { - i-- - if m.IsApplyBusy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc0 + return len(dAtA) - i, nil +} + +func (m *GetClusterConfigResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.DamagedRegionsId) > 0 { - dAtA95 := make([]byte, len(m.DamagedRegionsId)*10) - var j94 int - for _, num := range m.DamagedRegionsId { - for num >= 1<<7 { - dAtA95[j94] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j94++ + return dAtA[:n], nil +} + +func (m *GetClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Cluster != nil { + { + size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - dAtA95[j94] = uint8(num) - j94++ + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= j94 - copy(dAtA[i:], dAtA95[:j94]) - i = encodeVarintPdpb(dAtA, i, uint64(j94)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - if m.SlowScore != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SlowScore)) i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb0 + dAtA[i] = 0x12 } - if m.QueryStats != nil { + if m.Header != nil { { - size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14083,181 +13090,12 @@ func (m *StoreStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - if len(m.PeerStats) > 0 { - for iNdEx := len(m.PeerStats) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PeerStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - } - if len(m.OpLatencies) > 0 { - for iNdEx := len(m.OpLatencies) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.OpLatencies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - } - if len(m.WriteIoRates) > 0 { - for iNdEx := len(m.WriteIoRates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WriteIoRates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - } - if len(m.ReadIoRates) > 0 { - for iNdEx := len(m.ReadIoRates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReadIoRates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - } - if len(m.CpuUsages) > 0 { - for iNdEx := len(m.CpuUsages) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CpuUsages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - } - if m.Interval != nil { - { - size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if m.KeysRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - i-- - dAtA[i] = 0x70 - } - if m.BytesRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) - i-- - dAtA[i] = 0x68 - } - if m.KeysWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - i-- - dAtA[i] = 0x60 - } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) - i-- - dAtA[i] = 0x58 - } - if m.UsedSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.UsedSize)) - i-- - dAtA[i] = 0x50 - } - if m.IsBusy { - i-- - if m.IsBusy { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.ApplyingSnapCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ApplyingSnapCount)) - i-- - dAtA[i] = 0x40 - } - if m.StartTime != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartTime)) - i-- - dAtA[i] = 0x38 - } - if m.ReceivingSnapCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ReceivingSnapCount)) - i-- - dAtA[i] = 0x30 - } - if m.SendingSnapCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SendingSnapCount)) - i-- - dAtA[i] = 0x28 - } - if m.RegionCount != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionCount)) - i-- - dAtA[i] = 0x20 - } - if m.Available != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Available)) - i-- - dAtA[i] = 0x18 - } - if m.Capacity != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Capacity)) - i-- - dAtA[i] = 0x10 - } - if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SlowTrend) Marshal() (dAtA []byte, err error) { +func (m *PutClusterConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14267,44 +13105,44 @@ func (m *SlowTrend) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SlowTrend) MarshalTo(dAtA []byte) (int, error) { +func (m *PutClusterConfigRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SlowTrend) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PutClusterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ResultRate != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultRate)))) - i-- - dAtA[i] = 0x21 - } - if m.ResultValue != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultValue)))) - i-- - dAtA[i] = 0x19 - } - if m.CauseRate != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseRate)))) + if m.Cluster != nil { + { + size, err := m.Cluster.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x11 + dAtA[i] = 0x12 } - if m.CauseValue != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseValue)))) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x9 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SnapshotStat) Marshal() (dAtA []byte, err error) { +func (m *PutClusterConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14314,45 +13152,32 @@ func (m *SnapshotStat) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SnapshotStat) MarshalTo(dAtA []byte) (int, error) { +func (m *PutClusterConfigResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SnapshotStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PutClusterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TransportSize != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TransportSize)) - i-- - dAtA[i] = 0x28 - } - if m.TotalDurationSec != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TotalDurationSec)) - i-- - dAtA[i] = 0x20 - } - if m.SendDurationSec != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SendDurationSec)) - i-- - dAtA[i] = 0x18 - } - if m.GenerateDurationSec != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.GenerateDurationSec)) - i-- - dAtA[i] = 0x10 - } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PeerReport) Marshal() (dAtA []byte, err error) { +func (m *Member) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14362,69 +13187,83 @@ func (m *PeerReport) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PeerReport) MarshalTo(dAtA []byte) (int, error) { +func (m *Member) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PeerReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.AppliedIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.AppliedIndex)) + if len(m.DcLocation) > 0 { + i -= len(m.DcLocation) + copy(dAtA[i:], m.DcLocation) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x4a } - if m.HasCommitMerge { + if len(m.GitHash) > 0 { + i -= len(m.GitHash) + copy(dAtA[i:], m.GitHash) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.GitHash))) i-- - if m.HasCommitMerge { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + dAtA[i] = 0x42 + } + if len(m.BinaryVersion) > 0 { + i -= len(m.BinaryVersion) + copy(dAtA[i:], m.BinaryVersion) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.BinaryVersion))) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x3a } - if m.IsForceLeader { + if len(m.DeployPath) > 0 { + i -= len(m.DeployPath) + copy(dAtA[i:], m.DeployPath) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DeployPath))) i-- - if m.IsForceLeader { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + dAtA[i] = 0x32 + } + if m.LeaderPriority != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.LeaderPriority)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x28 } - if m.RegionState != nil { - { - size, err := m.RegionState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.ClientUrls) > 0 { + for iNdEx := len(m.ClientUrls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClientUrls[iNdEx]) + copy(dAtA[i:], m.ClientUrls[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClientUrls[iNdEx]))) + i-- + dAtA[i] = 0x22 } - i-- - dAtA[i] = 0x12 } - if m.RaftState != nil { - { - size, err := m.RaftState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.PeerUrls) > 0 { + for iNdEx := len(m.PeerUrls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PeerUrls[iNdEx]) + copy(dAtA[i:], m.PeerUrls[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.PeerUrls[iNdEx]))) + i-- + dAtA[i] = 0x1a } + } + if m.MemberId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.MemberId)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *StoreReport) Marshal() (dAtA []byte, err error) { +func (m *GetMembersRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14434,39 +13273,32 @@ func (m *StoreReport) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StoreReport) MarshalTo(dAtA []byte) (int, error) { +func (m *GetMembersRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StoreReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Step != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) - i-- - dAtA[i] = 0x10 - } - if len(m.PeerReports) > 0 { - for iNdEx := len(m.PeerReports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PeerReports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { +func (m *GetMembersResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14476,19 +13308,45 @@ func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StoreHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetMembersResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.DrAutosyncStatus != nil { + if len(m.TsoAllocatorLeaders) > 0 { + for k := range m.TsoAllocatorLeaders { + v := m.TsoAllocatorLeaders[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintPdpb(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintPdpb(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + if m.EtcdLeader != nil { { - size, err := m.DrAutosyncStatus.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.EtcdLeader.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14498,9 +13356,9 @@ func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.StoreReport != nil { + if m.Leader != nil { { - size, err := m.StoreReport.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14510,17 +13368,19 @@ func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if m.Stats != nil { - { - size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Members) > 0 { + for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 } if m.Header != nil { { @@ -14537,7 +13397,7 @@ func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *DemoteFailedVoters) Marshal() (dAtA []byte, err error) { +func (m *GetClusterInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14547,39 +13407,32 @@ func (m *DemoteFailedVoters) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DemoteFailedVoters) MarshalTo(dAtA []byte) (int, error) { +func (m *GetClusterInfoRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DemoteFailedVoters) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetClusterInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.FailedVoters) > 0 { - for iNdEx := len(m.FailedVoters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FailedVoters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x12 + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *ForceLeader) Marshal() (dAtA []byte, err error) { +func (m *GetClusterInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14589,56 +13442,59 @@ func (m *ForceLeader) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ForceLeader) MarshalTo(dAtA []byte) (int, error) { +func (m *GetClusterInfoResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetClusterInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.EnterForceLeaders) > 0 { - dAtA105 := make([]byte, len(m.EnterForceLeaders)*10) - var j104 int - for _, num := range m.EnterForceLeaders { + if len(m.TsoUrls) > 0 { + for iNdEx := len(m.TsoUrls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TsoUrls[iNdEx]) + copy(dAtA[i:], m.TsoUrls[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.TsoUrls[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ServiceModes) > 0 { + dAtA55 := make([]byte, len(m.ServiceModes)*10) + var j54 int + for _, num := range m.ServiceModes { for num >= 1<<7 { - dAtA105[j104] = uint8(uint64(num)&0x7f | 0x80) + dAtA55[j54] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j104++ + j54++ } - dAtA105[j104] = uint8(num) - j104++ + dAtA55[j54] = uint8(num) + j54++ } - i -= j104 - copy(dAtA[i:], dAtA105[:j104]) - i = encodeVarintPdpb(dAtA, i, uint64(j104)) + i -= j54 + copy(dAtA[i:], dAtA55[:j54]) + i = encodeVarintPdpb(dAtA, i, uint64(j54)) i-- dAtA[i] = 0x12 } - if len(m.FailedStores) > 0 { - dAtA107 := make([]byte, len(m.FailedStores)*10) - var j106 int - for _, num := range m.FailedStores { - for num >= 1<<7 { - dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j106++ + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - dAtA107[j106] = uint8(num) - j106++ + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= j106 - copy(dAtA[i:], dAtA107[:j106]) - i = encodeVarintPdpb(dAtA, i, uint64(j106)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RecoveryPlan) Marshal() (dAtA []byte, err error) { +func (m *PeerStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14648,24 +13504,24 @@ func (m *RecoveryPlan) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RecoveryPlan) MarshalTo(dAtA []byte) (int, error) { +func (m *PeerStats) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PeerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Step != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) - i-- - dAtA[i] = 0x30 + if m.DownSeconds != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.DownSeconds)) + i-- + dAtA[i] = 0x10 } - if m.ForceLeader != nil { + if m.Peer != nil { { - size, err := m.ForceLeader.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14673,44 +13529,122 @@ func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0xa } - if len(m.Demotes) > 0 { - for iNdEx := len(m.Demotes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Demotes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + return len(dAtA) - i, nil +} + +func (m *RegionHeartbeatRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RegionHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ApproximateKvSize != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKvSize)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.CpuUsage != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.CpuUsage)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.QueryStats != nil { + { + size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x22 + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } - if len(m.Tombstones) > 0 { - dAtA110 := make([]byte, len(m.Tombstones)*10) - var j109 int - for _, num := range m.Tombstones { - for num >= 1<<7 { - dAtA110[j109] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j109++ + if m.ReplicationStatus != nil { + { + size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - dAtA110[j109] = uint8(num) - j109++ + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= j109 - copy(dAtA[i:], dAtA110[:j109]) - i = encodeVarintPdpb(dAtA, i, uint64(j109)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x7a } - if len(m.Updates) > 0 { - for iNdEx := len(m.Updates) - 1; iNdEx >= 0; iNdEx-- { + if m.Term != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Term)) + i-- + dAtA[i] = 0x70 + } + if m.ApproximateKeys != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateKeys)) + i-- + dAtA[i] = 0x68 + } + if m.Interval != nil { + { + size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + if m.ApproximateSize != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ApproximateSize)) + i-- + dAtA[i] = 0x50 + } + if m.KeysRead != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) + i-- + dAtA[i] = 0x48 + } + if m.KeysWritten != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) + i-- + dAtA[i] = 0x40 + } + if m.BytesRead != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) + i-- + dAtA[i] = 0x38 + } + if m.BytesWritten != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) + i-- + dAtA[i] = 0x30 + } + if len(m.PendingPeers) > 0 { + for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Updates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14718,13 +13652,13 @@ func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x2a } } - if len(m.Creates) > 0 { - for iNdEx := len(m.Creates) - 1; iNdEx >= 0; iNdEx-- { + if len(m.DownPeers) > 0 { + for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Creates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14732,13 +13666,49 @@ func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x22 + } + } + if m.Leader != nil { + { + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *AwakenRegions) Marshal() (dAtA []byte, err error) { +func (m *ChangePeer) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14748,38 +13718,37 @@ func (m *AwakenRegions) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AwakenRegions) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangePeer) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangePeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AbnormalStores) > 0 { - dAtA112 := make([]byte, len(m.AbnormalStores)*10) - var j111 int - for _, num := range m.AbnormalStores { - for num >= 1<<7 { - dAtA112[j111] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j111++ + if m.ChangeType != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ChangeType)) + i-- + dAtA[i] = 0x10 + } + if m.Peer != nil { + { + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - dAtA112[j111] = uint8(num) - j111++ + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= j111 - copy(dAtA[i:], dAtA112[:j111]) - i = encodeVarintPdpb(dAtA, i, uint64(j111)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *ControlGrpc) Marshal() (dAtA []byte, err error) { +func (m *ChangePeerV2) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14789,25 +13758,34 @@ func (m *ControlGrpc) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ControlGrpc) MarshalTo(dAtA []byte) (int, error) { +func (m *ChangePeerV2) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ControlGrpc) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ChangePeerV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.CtrlEvent != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.CtrlEvent)) - i-- - dAtA[i] = 0x8 + if len(m.Changes) > 0 { + for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { +func (m *TransferLeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14817,84 +13795,33 @@ func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *TransferLeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *StoreHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TransferLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ControlGrpc != nil { - { - size, err := m.ControlGrpc.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.AwakenRegions != nil { - { - size, err := m.AwakenRegions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.RecoveryPlan != nil { - { - size, err := m.RecoveryPlan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.RequireDetailedReport { - i-- - if m.RequireDetailedReport { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.ClusterVersion) > 0 { - i -= len(m.ClusterVersion) - copy(dAtA[i:], m.ClusterVersion) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClusterVersion))) - i-- - dAtA[i] = 0x1a - } - if m.ReplicationStatus != nil { - { - size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Peers) > 0 { + for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 } - if m.Header != nil { + if m.Peer != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Peer.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -14907,7 +13834,7 @@ func (m *StoreHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *ScatterRegionRequest) Marshal() (dAtA []byte, err error) { +func (m *Merge) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -14917,88 +13844,19 @@ func (m *ScatterRegionRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ScatterRegionRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *Merge) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ScatterRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Merge) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SkipStoreLimit { - i-- - if m.SkipStoreLimit { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x38 - } - if len(m.RegionsId) > 0 { - dAtA119 := make([]byte, len(m.RegionsId)*10) - var j118 int - for _, num := range m.RegionsId { - for num >= 1<<7 { - dAtA119[j118] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j118++ - } - dAtA119[j118] = uint8(num) - j118++ - } - i -= j118 - copy(dAtA[i:], dAtA119[:j118]) - i = encodeVarintPdpb(dAtA, i, uint64(j118)) - i-- - dAtA[i] = 0x32 - } - if len(m.Group) > 0 { - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x2a - } - if m.Leader != nil { - { - size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { + if m.Target != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -15011,7 +13869,7 @@ func (m *ScatterRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ScatterRegionResponse) Marshal() (dAtA []byte, err error) { +func (m *SplitRegion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15021,37 +13879,34 @@ func (m *ScatterRegionResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ScatterRegionResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *SplitRegion) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ScatterRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SplitRegion) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.FinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if len(m.Keys) > 0 { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x12 } + } + if m.Policy != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Policy)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetGCSafePointRequest) Marshal() (dAtA []byte, err error) { +func (m *SwitchWitness) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15061,32 +13916,35 @@ func (m *GetGCSafePointRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *SwitchWitness) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.IsWitness { + i-- + if m.IsWitness { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 + } + if m.PeerId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.PeerId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetGCSafePointResponse) Marshal() (dAtA []byte, err error) { +func (m *BatchSwitchWitness) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15096,37 +13954,34 @@ func (m *GetGCSafePointResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *BatchSwitchWitness) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *BatchSwitchWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.SwitchWitnesses) > 0 { + for iNdEx := len(m.SwitchWitnesses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SwitchWitnesses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { +func (m *RegionHeartbeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15136,24 +13991,19 @@ func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RegionHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RegionHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x10 - } - if m.Header != nil { + if m.SwitchWitnesses != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SwitchWitnesses.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -15161,35 +14011,96 @@ func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x52 } - return len(dAtA) - i, nil -} - -func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.ChangePeerV2 != nil { + { + size, err := m.ChangePeerV2.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a } - return dAtA[:n], nil -} - -func (m *UpdateGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NewSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) + if m.SplitRegion != nil { + { + size, err := m.SplitRegion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x42 + } + if m.Merge != nil { + { + size, err := m.Merge.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.TargetPeer != nil { + { + size, err := m.TargetPeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x20 + } + if m.TransferLeader != nil { + { + size, err := m.TransferLeader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.ChangePeer != nil { + { + size, err := m.ChangePeer.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } if m.Header != nil { { @@ -15206,7 +14117,7 @@ func (m *UpdateGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *UpdateServiceGCSafePointRequest) Marshal() (dAtA []byte, err error) { +func (m *AskSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15216,30 +14127,25 @@ func (m *UpdateServiceGCSafePointRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateServiceGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *AskSplitRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateServiceGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AskSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x20 - } - if m.TTL != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) - i-- - dAtA[i] = 0x18 - } - if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } @@ -15258,7 +14164,7 @@ func (m *UpdateServiceGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *UpdateServiceGCSafePointResponse) Marshal() (dAtA []byte, err error) { +func (m *AskSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15268,32 +14174,38 @@ func (m *UpdateServiceGCSafePointResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateServiceGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *AskSplitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateServiceGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AskSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.MinSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - i-- - dAtA[i] = 0x20 - } - if m.TTL != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) + if len(m.NewPeerIds) > 0 { + dAtA79 := make([]byte, len(m.NewPeerIds)*10) + var j78 int + for _, num := range m.NewPeerIds { + for num >= 1<<7 { + dAtA79[j78] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j78++ + } + dAtA79[j78] = uint8(num) + j78++ + } + i -= j78 + copy(dAtA[i:], dAtA79[:j78]) + i = encodeVarintPdpb(dAtA, i, uint64(j78)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } - if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + if m.NewRegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if m.Header != nil { { @@ -15310,7 +14222,7 @@ func (m *UpdateServiceGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *GetGCSafePointV2Request) Marshal() (dAtA []byte, err error) { +func (m *ReportSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15320,20 +14232,39 @@ func (m *GetGCSafePointV2Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { +func (m *ReportSplitRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ReportSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.Right != nil { + { + size, err := m.Right.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a + } + if m.Left != nil { + { + size, err := m.Left.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } if m.Header != nil { { @@ -15350,7 +14281,7 @@ func (m *GetGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *GetGCSafePointV2Response) Marshal() (dAtA []byte, err error) { +func (m *ReportSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15360,21 +14291,16 @@ func (m *GetGCSafePointV2Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { +func (m *ReportSplitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ReportSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x10 - } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -15390,7 +14316,7 @@ func (m *GetGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *WatchGCSafePointV2Request) Marshal() (dAtA []byte, err error) { +func (m *AskBatchSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15400,20 +14326,32 @@ func (m *WatchGCSafePointV2Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WatchGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { +func (m *AskBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *WatchGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AskBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + if m.SplitCount != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitCount)) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x18 + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } if m.Header != nil { { @@ -15430,7 +14368,7 @@ func (m *WatchGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *SafePointEvent) Marshal() (dAtA []byte, err error) { +func (m *SplitID) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15440,35 +14378,43 @@ func (m *SafePointEvent) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SafePointEvent) MarshalTo(dAtA []byte) (int, error) { +func (m *SplitID) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SafePointEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SplitID) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x18 - } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + if len(m.NewPeerIds) > 0 { + dAtA88 := make([]byte, len(m.NewPeerIds)*10) + var j87 int + for _, num := range m.NewPeerIds { + for num >= 1<<7 { + dAtA88[j87] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j87++ + } + dAtA88[j87] = uint8(num) + j87++ + } + i -= j87 + copy(dAtA[i:], dAtA88[:j87]) + i = encodeVarintPdpb(dAtA, i, uint64(j87)) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.NewRegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.NewRegionId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *WatchGCSafePointV2Response) Marshal() (dAtA []byte, err error) { +func (m *AskBatchSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15478,25 +14424,20 @@ func (m *WatchGCSafePointV2Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WatchGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { +func (m *AskBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *WatchGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AskBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 - } - if len(m.Events) > 0 { - for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Ids[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -15522,7 +14463,7 @@ func (m *WatchGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *UpdateGCSafePointV2Request) Marshal() (dAtA []byte, err error) { +func (m *ReportBatchSplitRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15532,25 +14473,29 @@ func (m *UpdateGCSafePointV2Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { +func (m *ReportBatchSplitRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ReportBatchSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x18 - } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) - i-- - dAtA[i] = 0x10 + if len(m.Regions) > 0 { + for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } if m.Header != nil { { @@ -15567,7 +14512,7 @@ func (m *UpdateGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *UpdateGCSafePointV2Response) Marshal() (dAtA []byte, err error) { +func (m *ReportBatchSplitResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15577,21 +14522,16 @@ func (m *UpdateGCSafePointV2Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { +func (m *ReportBatchSplitResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ReportBatchSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.NewSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) - i-- - dAtA[i] = 0x10 - } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -15607,7 +14547,7 @@ func (m *UpdateGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *UpdateServiceSafePointV2Request) Marshal() (dAtA []byte, err error) { +func (m *TimeInterval) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15617,54 +14557,30 @@ func (m *UpdateServiceSafePointV2Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateServiceSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { +func (m *TimeInterval) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateServiceSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *TimeInterval) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Ttl != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x28 - } - if m.SafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) - i-- - dAtA[i] = 0x20 - } - if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) - i-- - dAtA[i] = 0x1a - } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.EndTimestamp != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.EndTimestamp)) i-- dAtA[i] = 0x10 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.StartTimestamp != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StartTimestamp)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *UpdateServiceSafePointV2Response) Marshal() (dAtA []byte, err error) { +func (m *RecordPair) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15674,49 +14590,32 @@ func (m *UpdateServiceSafePointV2Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateServiceSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { +func (m *RecordPair) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateServiceSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RecordPair) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.MinSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) - i-- - dAtA[i] = 0x20 - } - if m.Ttl != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) - i-- - dAtA[i] = 0x18 - } - if len(m.ServiceId) > 0 { - i -= len(m.ServiceId) - copy(dAtA[i:], m.ServiceId) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + if m.Value != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Value)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Key))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetAllGCSafePointV2Request) Marshal() (dAtA []byte, err error) { +func (m *PeerStat) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15726,19 +14625,29 @@ func (m *GetAllGCSafePointV2Request) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAllGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { +func (m *PeerStat) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAllGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PeerStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Header != nil { + if m.WrittenBytes != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenBytes)) + i-- + dAtA[i] = 0x30 + } + if m.WrittenKeys != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.WrittenKeys)) + i-- + dAtA[i] = 0x28 + } + if m.QueryStats != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -15746,45 +14655,27 @@ func (m *GetAllGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x22 } - return len(dAtA) - i, nil -} - -func (m *GCSafePointV2) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.ReadBytes != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ReadBytes)) + i-- + dAtA[i] = 0x18 } - return dAtA[:n], nil -} - -func (m *GCSafePointV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GCSafePointV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.GcSafePoint != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.GcSafePoint)) + if m.ReadKeys != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ReadKeys)) i-- dAtA[i] = 0x10 } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetAllGCSafePointV2Response) Marshal() (dAtA []byte, err error) { +func (m *StoreStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -15794,121 +14685,45 @@ func (m *GetAllGCSafePointV2Response) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAllGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { +func (m *StoreStats) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAllGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StoreStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Revision != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + if m.UsedMemory != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.UsedMemory)) i-- - dAtA[i] = 0x18 - } - if len(m.GcSafePoints) > 0 { - for iNdEx := len(m.GcSafePoints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.GcSafePoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe8 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.TotalMemory != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TotalMemory)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe0 } - return len(dAtA) - i, nil -} - -func (m *RegionStat) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RegionStat) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RegionStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.KeysRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) - i-- - dAtA[i] = 0x20 - } - if m.KeysWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) - i-- - dAtA[i] = 0x18 - } - if m.BytesRead != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) + if m.IsGrpcPaused { i-- - dAtA[i] = 0x10 - } - if m.BytesWritten != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) + if m.IsGrpcPaused { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SyncRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + dAtA[i] = 0x1 i-- - dAtA[i] = 0x18 + dAtA[i] = 0xd8 } - if m.Member != nil { + if m.SlowTrend != nil { { - size, err := m.Member.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SlowTrend.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -15916,11 +14731,68 @@ func (m *SyncRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 } - if m.Header != nil { + if len(m.SnapshotStats) > 0 { + for iNdEx := len(m.SnapshotStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SnapshotStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } + if m.IsApplyBusy { + i-- + if m.IsApplyBusy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + if len(m.DamagedRegionsId) > 0 { + dAtA95 := make([]byte, len(m.DamagedRegionsId)*10) + var j94 int + for _, num := range m.DamagedRegionsId { + for num >= 1<<7 { + dAtA95[j94] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j94++ + } + dAtA95[j94] = uint8(num) + j94++ + } + i -= j94 + copy(dAtA[i:], dAtA95[:j94]) + i = encodeVarintPdpb(dAtA, i, uint64(j94)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + if m.SlowScore != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SlowScore)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.QueryStats != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.QueryStats.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -15928,35 +14800,14 @@ func (m *SyncRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PeersStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa } - return dAtA[:n], nil -} - -func (m *PeersStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeersStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Peers) > 0 { - for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { + if len(m.PeerStats) > 0 { + for iNdEx := len(m.PeerStats) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PeerStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -15964,36 +14815,15 @@ func (m *PeersStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 } } - return len(dAtA) - i, nil -} - -func (m *Peers) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Peers) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Peers) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Peers) > 0 { - for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { + if len(m.OpLatencies) > 0 { + for iNdEx := len(m.OpLatencies) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.OpLatencies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16001,36 +14831,15 @@ func (m *Peers) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } } - return len(dAtA) - i, nil -} - -func (m *SyncRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SyncRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SyncRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PendingPeers) > 0 { - for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { + if len(m.WriteIoRates) > 0 { + for iNdEx := len(m.WriteIoRates) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.WriteIoRates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16040,13 +14849,13 @@ func (m *SyncRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x8a + dAtA[i] = 0x92 } } - if len(m.DownPeers) > 0 { - for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { + if len(m.ReadIoRates) > 0 { + for iNdEx := len(m.ReadIoRates) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ReadIoRates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16056,13 +14865,13 @@ func (m *SyncRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0x82 + dAtA[i] = 0x8a } } - if len(m.Buckets) > 0 { - for iNdEx := len(m.Buckets) - 1; iNdEx >= 0; iNdEx-- { + if len(m.CpuUsages) > 0 { + for iNdEx := len(m.CpuUsages) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Buckets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.CpuUsages[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16070,72 +14879,102 @@ func (m *SyncRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } } - if len(m.RegionLeaders) > 0 { - for iNdEx := len(m.RegionLeaders) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RegionLeaders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + if m.Interval != nil { + { + size, err := m.Interval.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0x2a + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x7a } - if len(m.RegionStats) > 0 { - for iNdEx := len(m.RegionStats) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RegionStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 + if m.KeysRead != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) + i-- + dAtA[i] = 0x70 + } + if m.BytesRead != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) + i-- + dAtA[i] = 0x68 + } + if m.KeysWritten != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) + i-- + dAtA[i] = 0x60 + } + if m.BytesWritten != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) + i-- + dAtA[i] = 0x58 + } + if m.UsedSize != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.UsedSize)) + i-- + dAtA[i] = 0x50 + } + if m.IsBusy { + i-- + if m.IsBusy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x48 } - if m.StartIndex != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + if m.ApplyingSnapCount != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ApplyingSnapCount)) + i-- + dAtA[i] = 0x40 + } + if m.StartTime != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StartTime)) + i-- + dAtA[i] = 0x38 + } + if m.ReceivingSnapCount != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ReceivingSnapCount)) + i-- + dAtA[i] = 0x30 + } + if m.SendingSnapCount != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SendingSnapCount)) + i-- + dAtA[i] = 0x28 + } + if m.RegionCount != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionCount)) + i-- + dAtA[i] = 0x20 + } + if m.Available != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Available)) i-- dAtA[i] = 0x18 } - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + if m.Capacity != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Capacity)) + i-- + dAtA[i] = 0x10 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.StoreId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetOperatorRequest) Marshal() (dAtA []byte, err error) { +func (m *SlowTrend) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16145,37 +14984,44 @@ func (m *GetOperatorRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetOperatorRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *SlowTrend) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SlowTrend) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + if m.ResultRate != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultRate)))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x21 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.ResultValue != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.ResultValue)))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x19 + } + if m.CauseRate != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseRate)))) + i-- + dAtA[i] = 0x11 + } + if m.CauseValue != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CauseValue)))) + i-- + dAtA[i] = 0x9 } return len(dAtA) - i, nil } -func (m *GetOperatorResponse) Marshal() (dAtA []byte, err error) { +func (m *SnapshotStat) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16185,56 +15031,45 @@ func (m *GetOperatorResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetOperatorResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *SnapshotStat) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SnapshotStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Kind) > 0 { - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Kind))) + if m.TransportSize != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TransportSize)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x28 } - if m.Status != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) + if m.TotalDurationSec != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TotalDurationSec)) i-- dAtA[i] = 0x20 } - if len(m.Desc) > 0 { - i -= len(m.Desc) - copy(dAtA[i:], m.Desc) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Desc))) + if m.SendDurationSec != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SendDurationSec)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } - if m.RegionId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + if m.GenerateDurationSec != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.GenerateDurationSec)) i-- dAtA[i] = 0x10 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *SyncMaxTSRequest) Marshal() (dAtA []byte, err error) { +func (m *PeerReport) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16244,19 +15079,34 @@ func (m *SyncMaxTSRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SyncMaxTSRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PeerReport) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SyncMaxTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PeerReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.SkipCheck { + if m.AppliedIndex != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.AppliedIndex)) i-- - if m.SkipCheck { + dAtA[i] = 0x28 + } + if m.HasCommitMerge { + i-- + if m.HasCommitMerge { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.IsForceLeader { + i-- + if m.IsForceLeader { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -16264,9 +15114,9 @@ func (m *SyncMaxTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - if m.MaxTs != nil { + if m.RegionState != nil { { - size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RegionState.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16276,9 +15126,9 @@ func (m *SyncMaxTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Header != nil { + if m.RaftState != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RaftState.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16291,7 +15141,7 @@ func (m *SyncMaxTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SyncMaxTSResponse) Marshal() (dAtA []byte, err error) { +func (m *StoreReport) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16301,53 +15151,39 @@ func (m *SyncMaxTSResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SyncMaxTSResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *StoreReport) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SyncMaxTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StoreReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.SyncedDcs) > 0 { - for iNdEx := len(m.SyncedDcs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SyncedDcs[iNdEx]) - copy(dAtA[i:], m.SyncedDcs[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.SyncedDcs[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.MaxLocalTs != nil { - { - size, err := m.MaxLocalTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.Step != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.PeerReports) > 0 { + for iNdEx := len(m.PeerReports) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PeerReports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SplitRegionsRequest) Marshal() (dAtA []byte, err error) { +func (m *StoreHeartbeatRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16357,33 +15193,19 @@ func (m *SplitRegionsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SplitRegionsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StoreHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SplitRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StoreHeartbeatRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x18 - } - if len(m.SplitKeys) > 0 { - for iNdEx := len(m.SplitKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SplitKeys[iNdEx]) - copy(dAtA[i:], m.SplitKeys[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.Header != nil { + if m.DrAutosyncStatus != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.DrAutosyncStatus.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16391,53 +15213,31 @@ func (m *SplitRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SplitRegionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + dAtA[i] = 0x22 } - return dAtA[:n], nil -} - -func (m *SplitRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SplitRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RegionsId) > 0 { - dAtA151 := make([]byte, len(m.RegionsId)*10) - var j150 int - for _, num := range m.RegionsId { - for num >= 1<<7 { - dAtA151[j150] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j150++ + if m.StoreReport != nil { + { + size, err := m.StoreReport.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - dAtA151[j150] = uint8(num) - j150++ + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= j150 - copy(dAtA[i:], dAtA151[:j150]) - i = encodeVarintPdpb(dAtA, i, uint64(j150)) i-- dAtA[i] = 0x1a } - if m.FinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.Header != nil { { @@ -16454,7 +15254,7 @@ func (m *SplitRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SplitAndScatterRegionsRequest) Marshal() (dAtA []byte, err error) { +func (m *DemoteFailedVoters) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16464,53 +15264,39 @@ func (m *SplitAndScatterRegionsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SplitAndScatterRegionsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *DemoteFailedVoters) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SplitAndScatterRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DemoteFailedVoters) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.RetryLimit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) - i-- - dAtA[i] = 0x20 - } - if len(m.Group) > 0 { - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x1a - } - if len(m.SplitKeys) > 0 { - for iNdEx := len(m.SplitKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SplitKeys[iNdEx]) - copy(dAtA[i:], m.SplitKeys[iNdEx]) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) + if len(m.FailedVoters) > 0 { + for iNdEx := len(m.FailedVoters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FailedVoters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) - } + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { +func (m *ForceLeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16520,60 +15306,56 @@ func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SplitAndScatterRegionsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *ForceLeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SplitAndScatterRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ForceLeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.RegionsId) > 0 { - dAtA155 := make([]byte, len(m.RegionsId)*10) - var j154 int - for _, num := range m.RegionsId { + if len(m.EnterForceLeaders) > 0 { + dAtA105 := make([]byte, len(m.EnterForceLeaders)*10) + var j104 int + for _, num := range m.EnterForceLeaders { for num >= 1<<7 { - dAtA155[j154] = uint8(uint64(num)&0x7f | 0x80) + dAtA105[j104] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j154++ + j104++ } - dAtA155[j154] = uint8(num) - j154++ + dAtA105[j104] = uint8(num) + j104++ } - i -= j154 - copy(dAtA[i:], dAtA155[:j154]) - i = encodeVarintPdpb(dAtA, i, uint64(j154)) - i-- - dAtA[i] = 0x22 - } - if m.ScatterFinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.ScatterFinishedPercentage)) - i-- - dAtA[i] = 0x18 - } - if m.SplitFinishedPercentage != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.SplitFinishedPercentage)) + i -= j104 + copy(dAtA[i:], dAtA105[:j104]) + i = encodeVarintPdpb(dAtA, i, uint64(j104)) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.FailedStores) > 0 { + dAtA107 := make([]byte, len(m.FailedStores)*10) + var j106 int + for _, num := range m.FailedStores { + for num >= 1<<7 { + dAtA107[j106] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j106++ } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA107[j106] = uint8(num) + j106++ } + i -= j106 + copy(dAtA[i:], dAtA107[:j106]) + i = encodeVarintPdpb(dAtA, i, uint64(j106)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetDCLocationInfoRequest) Marshal() (dAtA []byte, err error) { +func (m *RecoveryPlan) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16583,26 +15365,24 @@ func (m *GetDCLocationInfoRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetDCLocationInfoRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RecoveryPlan) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetDCLocationInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RecoveryPlan) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.DcLocation) > 0 { - i -= len(m.DcLocation) - copy(dAtA[i:], m.DcLocation) - i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + if m.Step != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Step)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x30 } - if m.Header != nil { + if m.ForceLeader != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ForceLeader.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16610,64 +15390,72 @@ func (m *GetDCLocationInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x2a } - return len(dAtA) - i, nil -} - -func (m *GetDCLocationInfoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if len(m.Demotes) > 0 { + for iNdEx := len(m.Demotes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Demotes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - return dAtA[:n], nil -} - -func (m *GetDCLocationInfoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetDCLocationInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxTs != nil { - { - size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Tombstones) > 0 { + dAtA110 := make([]byte, len(m.Tombstones)*10) + var j109 int + for _, num := range m.Tombstones { + for num >= 1<<7 { + dAtA110[j109] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j109++ } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + dAtA110[j109] = uint8(num) + j109++ } + i -= j109 + copy(dAtA[i:], dAtA110[:j109]) + i = encodeVarintPdpb(dAtA, i, uint64(j109)) i-- dAtA[i] = 0x1a } - if m.Suffix != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) - i-- - dAtA[i] = 0x10 + if len(m.Updates) > 0 { + for iNdEx := len(m.Updates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Updates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Creates) > 0 { + for iNdEx := len(m.Creates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Creates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintPdpb(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryStats) Marshal() (dAtA []byte, err error) { +func (m *AwakenRegions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16677,75 +15465,66 @@ func (m *QueryStats) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryStats) MarshalTo(dAtA []byte) (int, error) { +func (m *AwakenRegions) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AwakenRegions) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Rollback != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Rollback)) - i-- - dAtA[i] = 0x58 - } - if m.Commit != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Commit)) - i-- - dAtA[i] = 0x50 - } - if m.AcquirePessimisticLock != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.AcquirePessimisticLock)) - i-- - dAtA[i] = 0x48 - } - if m.Prewrite != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Prewrite)) - i-- - dAtA[i] = 0x40 - } - if m.Put != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Put)) - i-- - dAtA[i] = 0x38 - } - if m.DeleteRange != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.DeleteRange)) - i-- - dAtA[i] = 0x30 - } - if m.Delete != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Delete)) - i-- - dAtA[i] = 0x28 - } - if m.Coprocessor != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Coprocessor)) - i-- - dAtA[i] = 0x20 - } - if m.Scan != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Scan)) + if len(m.AbnormalStores) > 0 { + dAtA112 := make([]byte, len(m.AbnormalStores)*10) + var j111 int + for _, num := range m.AbnormalStores { + for num >= 1<<7 { + dAtA112[j111] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j111++ + } + dAtA112[j111] = uint8(num) + j111++ + } + i -= j111 + copy(dAtA[i:], dAtA112[:j111]) + i = encodeVarintPdpb(dAtA, i, uint64(j111)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0xa } - if m.Get != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Get)) - i-- - dAtA[i] = 0x10 + return len(dAtA) - i, nil +} + +func (m *ControlGrpc) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if m.GC != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.GC)) + return dAtA[:n], nil +} + +func (m *ControlGrpc) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ControlGrpc) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CtrlEvent != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.CtrlEvent)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *ReportBucketsRequest) Marshal() (dAtA []byte, err error) { +func (m *StoreHeartbeatResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16755,19 +15534,19 @@ func (m *ReportBucketsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReportBucketsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ReportBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StoreHeartbeatResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Buckets != nil { + if m.ControlGrpc != nil { { - size, err := m.Buckets.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ControlGrpc.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16775,11 +15554,11 @@ func (m *ReportBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x3a } - if m.RegionEpoch != nil { + if m.AwakenRegions != nil { { - size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.AwakenRegions.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16787,11 +15566,11 @@ func (m *ReportBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0x32 } - if m.Header != nil { + if m.RecoveryPlan != nil { { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RecoveryPlan.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16799,31 +15578,37 @@ func (m *ReportBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x2a } - return len(dAtA) - i, nil -} - -func (m *ReportBucketsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if m.RequireDetailedReport { + i-- + if m.RequireDetailedReport { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.ClusterVersion) > 0 { + i -= len(m.ClusterVersion) + copy(dAtA[i:], m.ClusterVersion) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ClusterVersion))) + i-- + dAtA[i] = 0x1a + } + if m.ReplicationStatus != nil { + { + size, err := m.ReplicationStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return dAtA[:n], nil -} - -func (m *ReportBucketsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReportBucketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -16839,7 +15624,7 @@ func (m *ReportBucketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ReportMinResolvedTsRequest) Marshal() (dAtA []byte, err error) { +func (m *ScatterRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16849,29 +15634,88 @@ func (m *ReportMinResolvedTsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReportMinResolvedTsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ScatterRegionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ReportMinResolvedTsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ScatterRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.MinResolvedTs != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.MinResolvedTs)) + if m.SkipStoreLimit { i-- - dAtA[i] = 0x18 + if m.SkipStoreLimit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 } - if m.StoreId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) + if m.RetryLimit != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x38 } - if m.Header != nil { - { - size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if len(m.RegionsId) > 0 { + dAtA119 := make([]byte, len(m.RegionsId)*10) + var j118 int + for _, num := range m.RegionsId { + for num >= 1<<7 { + dAtA119[j118] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j118++ + } + dAtA119[j118] = uint8(num) + j118++ + } + i -= j118 + copy(dAtA[i:], dAtA119[:j118]) + i = encodeVarintPdpb(dAtA, i, uint64(j118)) + i-- + dAtA[i] = 0x32 + } + if len(m.Group) > 0 { + i -= len(m.Group) + copy(dAtA[i:], m.Group) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) + i-- + dAtA[i] = 0x2a + } + if m.Leader != nil { + { + size, err := m.Leader.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Region != nil { + { + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -16884,7 +15728,7 @@ func (m *ReportMinResolvedTsRequest) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *ReportMinResolvedTsResponse) Marshal() (dAtA []byte, err error) { +func (m *ScatterRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16894,16 +15738,21 @@ func (m *ReportMinResolvedTsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReportMinResolvedTsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *ScatterRegionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ReportMinResolvedTsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ScatterRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.FinishedPercentage != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) + i-- + dAtA[i] = 0x10 + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -16919,7 +15768,7 @@ func (m *ReportMinResolvedTsResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *SetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { +func (m *GetGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16929,21 +15778,16 @@ func (m *SetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SetExternalTimestampRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SetExternalTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Timestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) - i-- - dAtA[i] = 0x10 - } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -16959,7 +15803,7 @@ func (m *SetExternalTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *SetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { +func (m *GetGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -16969,16 +15813,21 @@ func (m *SetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SetExternalTimestampResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SetExternalTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.SafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x10 + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -16994,7 +15843,7 @@ func (m *SetExternalTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *GetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { +func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -17004,16 +15853,26 @@ func (m *GetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetExternalTimestampRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetExternalTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x18 + } + if m.Target != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Target)) + i-- + dAtA[i] = 0x10 + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -17029,7 +15888,7 @@ func (m *GetExternalTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *GetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { +func (m *UpdateGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -17039,18 +15898,18 @@ func (m *GetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetExternalTimestampResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetExternalTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Timestamp != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) + if m.NewGcSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.NewGcSafePoint)) i-- dAtA[i] = 0x10 } @@ -17069,7 +15928,7 @@ func (m *GetExternalTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { +func (m *UpdateServiceGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -17079,16 +15938,33 @@ func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetMinTSRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateServiceGCSafePointRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetMinTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateServiceGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.SafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x20 + } + if m.TTL != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) + i-- + dAtA[i] = 0x18 + } + if len(m.ServiceId) > 0 { + i -= len(m.ServiceId) + copy(dAtA[i:], m.ServiceId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i-- + dAtA[i] = 0x12 + } if m.Header != nil { { size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) @@ -17104,7 +15980,7 @@ func (m *GetMinTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { +func (m *UpdateServiceGCSafePointResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -17114,19 +15990,36 @@ func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetMinTSResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateServiceGCSafePointResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetMinTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateServiceGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Timestamp != nil { + if m.MinSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) + i-- + dAtA[i] = 0x20 + } + if m.TTL != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TTL)) + i-- + dAtA[i] = 0x18 + } + if len(m.ServiceId) > 0 { + i -= len(m.ServiceId) + copy(dAtA[i:], m.ServiceId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i-- + dAtA[i] = 0x12 + } + if m.Header != nil { { - size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -17134,7 +16027,35 @@ func (m *GetMinTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintPdpb(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetGCSafePointV2Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 } if m.Header != nil { { @@ -17151,1939 +16072,2431 @@ func (m *GetMinTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintPdpb(dAtA []byte, offset int, v uint64) int { - offset -= sovPdpb(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *GetGCSafePointV2Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *WatchGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } + +func (m *GetGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ConfigPath) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.SafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x10 } - if m.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *WatchGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 +func (m *WatchGCSafePointV2Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - if len(m.Changes) > 0 { - for _, e := range m.Changes { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - if m.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) - } - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n + return dAtA[:n], nil } -func (m *StoreGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *WatchGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Changes) > 0 { - for _, e := range m.Changes { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x10 } - l = len(m.ConfigPath) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *StoreGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *SafePointEvent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *LoadGlobalConfigRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) - n += 1 + l + sovPdpb(uint64(l)) - } - } - l = len(m.ConfigPath) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - return n +func (m *SafePointEvent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *LoadGlobalConfigResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *SafePointEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if m.Type != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x18 } - if m.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) + if m.SafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x10 } - return n + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } -func (m *GlobalConfigItem) Size() (n int) { - if m == nil { - return 0 +func (m *WatchGCSafePointV2Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *WatchGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WatchGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x18 } - if m.Kind != 0 { - n += 1 + sovPdpb(uint64(m.Kind)) + if len(m.Events) > 0 { + for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *RequestHeader) Size() (n int) { - if m == nil { - return 0 +func (m *UpdateGCSafePointV2Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UpdateGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.ClusterId != 0 { - n += 1 + sovPdpb(uint64(m.ClusterId)) - } - if m.SenderId != 0 { - n += 1 + sovPdpb(uint64(m.SenderId)) + if m.SafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x18 } - l = len(m.CallerId) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 } - l = len(m.CallerComponent) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ResponseHeader) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ClusterId != 0 { - n += 1 + sovPdpb(uint64(m.ClusterId)) - } - if m.Error != nil { - l = m.Error.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *UpdateGCSafePointV2Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *Error) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovPdpb(uint64(m.Type)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - return n +func (m *UpdateGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TsoRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Count != 0 { - n += 1 + sovPdpb(uint64(m.Count)) + if m.NewSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.NewSafePoint)) + i-- + dAtA[i] = 0x10 } - l = len(m.DcLocation) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *Timestamp) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Physical != 0 { - n += 1 + sovPdpb(uint64(m.Physical)) - } - if m.Logical != 0 { - n += 1 + sovPdpb(uint64(m.Logical)) - } - if m.SuffixBits != 0 { - n += 1 + sovPdpb(uint64(m.SuffixBits)) +func (m *UpdateServiceSafePointV2Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *TsoResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Count != 0 { - n += 1 + sovPdpb(uint64(m.Count)) - } - if m.Timestamp != nil { - l = m.Timestamp.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n +func (m *UpdateServiceSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BootstrapRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateServiceSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Ttl != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x28 } - if m.Store != nil { - l = m.Store.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.SafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SafePoint)) + i-- + dAtA[i] = 0x20 } - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.ServiceId) > 0 { + i -= len(m.ServiceId) + copy(dAtA[i:], m.ServiceId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i-- + dAtA[i] = 0x1a } - return n -} - -func (m *BootstrapResponse) Size() (n int) { - if m == nil { - return 0 + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 } - var l int - _ = l if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ReplicationStatus != nil { - l = m.ReplicationStatus.Size() - n += 1 + l + sovPdpb(uint64(l)) + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *IsBootstrappedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *UpdateServiceSafePointV2Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *IsBootstrappedResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateServiceSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateServiceSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.MinSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.MinSafePoint)) + i-- + dAtA[i] = 0x20 } - if m.Bootstrapped { - n += 2 + if m.Ttl != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Ttl)) + i-- + dAtA[i] = 0x18 } - return n -} - -func (m *AllocIDRequest) Size() (n int) { - if m == nil { - return 0 + if len(m.ServiceId) > 0 { + i -= len(m.ServiceId) + copy(dAtA[i:], m.ServiceId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.ServiceId))) + i-- + dAtA[i] = 0x12 } - var l int - _ = l if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *AllocIDResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Id != 0 { - n += 1 + sovPdpb(uint64(m.Id)) +func (m *GetAllGCSafePointV2Request) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *IsSnapshotRecoveringRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetAllGCSafePointV2Request) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllGCSafePointV2Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *IsSnapshotRecoveringResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Marked { - n += 2 +func (m *GCSafePointV2) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetStoreRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GCSafePointV2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GCSafePointV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.GcSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.GcSafePoint)) + i-- + dAtA[i] = 0x10 } - if m.StoreId != 0 { - n += 1 + sovPdpb(uint64(m.StoreId)) + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *GetStoreResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GetAllGCSafePointV2Response) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetAllGCSafePointV2Response) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetAllGCSafePointV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Revision != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Revision)) + i-- + dAtA[i] = 0x18 } - if m.Store != nil { - l = m.Store.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.GcSafePoints) > 0 { + for iNdEx := len(m.GcSafePoints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GcSafePoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.Stats != nil { - l = m.Stats.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PutStoreRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Store != nil { - l = m.Store.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *UpdateTxnSafePointRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *PutStoreResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ReplicationStatus != nil { - l = m.ReplicationStatus.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n +func (m *UpdateTxnSafePointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAllStoresRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateTxnSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Target != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Target)) + i-- + dAtA[i] = 0x18 } - if m.ExcludeTombstoneStores { - n += 2 + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 } - return n + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *GetAllStoresResponse) Size() (n int) { - if m == nil { - return 0 +func (m *UpdateTxnSafePointResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UpdateTxnSafePointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateTxnSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.NewTxnSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.NewTxnSafePoint)) + i-- + dAtA[i] = 0x10 } - if len(m.Stores) > 0 { - for _, e := range m.Stores { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetRegionRequest) Size() (n int) { - if m == nil { - return 0 +func (m *SetGCBarrierRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SetGCBarrierRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetGCBarrierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.TtlSeconds != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TtlSeconds)) + i-- + dAtA[i] = 0x28 } - l = len(m.RegionKey) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.BarrierTs != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BarrierTs)) + i-- + dAtA[i] = 0x20 } - if m.NeedBuckets { - n += 2 + if len(m.BarrierId) > 0 { + i -= len(m.BarrierId) + copy(dAtA[i:], m.BarrierId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.BarrierId))) + i-- + dAtA[i] = 0x1a } - return n -} - -func (m *GetRegionResponse) Size() (n int) { - if m == nil { - return 0 + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 } - var l int - _ = l if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Leader != nil { - l = m.Leader.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.DownPeers) > 0 { - for _, e := range m.DownPeers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - if len(m.PendingPeers) > 0 { - for _, e := range m.PendingPeers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.Buckets != nil { - l = m.Buckets.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *GetRegionByIDRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.RegionId != 0 { - n += 1 + sovPdpb(uint64(m.RegionId)) - } - if m.NeedBuckets { - n += 2 +func (m *GCBarrierInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *ScanRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GCBarrierInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GCBarrierInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - l = len(m.StartKey) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.TtlSeconds != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TtlSeconds)) + i-- + dAtA[i] = 0x18 } - if m.Limit != 0 { - n += 1 + sovPdpb(uint64(m.Limit)) + if m.BarrierTs != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BarrierTs)) + i-- + dAtA[i] = 0x10 } - l = len(m.EndKey) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if len(m.BarrierId) > 0 { + i -= len(m.BarrierId) + copy(dAtA[i:], m.BarrierId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.BarrierId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *Region) Size() (n int) { - if m == nil { - return 0 +func (m *SetGCBarrierResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SetGCBarrierResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetGCBarrierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Leader != nil { - l = m.Leader.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.DownPeers) > 0 { - for _, e := range m.DownPeers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.NewBarrierInfo != nil { + { + size, err := m.NewBarrierInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if len(m.PendingPeers) > 0 { - for _, e := range m.PendingPeers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.Buckets != nil { - l = m.Buckets.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *ScanRegionsResponse) Size() (n int) { - if m == nil { - return 0 +func (m *DeleteGCBarrierRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DeleteGCBarrierRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteGCBarrierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.RegionMetas) > 0 { - for _, e := range m.RegionMetas { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if len(m.BarrierId) > 0 { + i -= len(m.BarrierId) + copy(dAtA[i:], m.BarrierId) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.BarrierId))) + i-- + dAtA[i] = 0x1a } - if len(m.Leaders) > 0 { - for _, e := range m.Leaders { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 } - if len(m.Regions) > 0 { - for _, e := range m.Regions { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *KeyRange) Size() (n int) { - if m == nil { - return 0 +func (m *DeleteGCBarrierResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DeleteGCBarrierResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteGCBarrierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.StartKey) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.DeletedBarrierInfo != nil { + { + size, err := m.DeletedBarrierInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - l = len(m.EndKey) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *BatchScanRegionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.NeedBuckets { - n += 2 - } - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - if m.Limit != 0 { - n += 1 + sovPdpb(uint64(m.Limit)) - } - if m.ContainAllKeyRange { - n += 2 +func (m *GetGCStateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *BatchScanRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetGCStateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetGCStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x10 } - if len(m.Regions) > 0 { - for _, e := range m.Regions { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetClusterConfigRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *GetGCStateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetClusterConfigResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Cluster != nil { - l = m.Cluster.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - return n +func (m *GetGCStateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PutClusterConfigRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetGCStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.GcBarriers) > 0 { + for iNdEx := len(m.GcBarriers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GcBarriers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - if m.Cluster != nil { - l = m.Cluster.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.GcSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.GcSafePoint)) + i-- + dAtA[i] = 0x18 } - return n -} - -func (m *PutClusterConfigResponse) Size() (n int) { - if m == nil { - return 0 + if m.TxnSafePoint != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.TxnSafePoint)) + i-- + dAtA[i] = 0x10 } - var l int - _ = l if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *Member) Size() (n int) { - if m == nil { - return 0 +func (m *RegionStat) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *RegionStat) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RegionStat) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if m.MemberId != 0 { - n += 1 + sovPdpb(uint64(m.MemberId)) - } - if len(m.PeerUrls) > 0 { - for _, s := range m.PeerUrls { - l = len(s) - n += 1 + l + sovPdpb(uint64(l)) - } - } - if len(m.ClientUrls) > 0 { - for _, s := range m.ClientUrls { - l = len(s) - n += 1 + l + sovPdpb(uint64(l)) - } - } - if m.LeaderPriority != 0 { - n += 1 + sovPdpb(uint64(m.LeaderPriority)) - } - l = len(m.DeployPath) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.KeysRead != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysRead)) + i-- + dAtA[i] = 0x20 } - l = len(m.BinaryVersion) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.KeysWritten != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeysWritten)) + i-- + dAtA[i] = 0x18 } - l = len(m.GitHash) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.BytesRead != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesRead)) + i-- + dAtA[i] = 0x10 } - l = len(m.DcLocation) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if m.BytesWritten != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.BytesWritten)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *GetMembersRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *SyncRegionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetMembersResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *SyncRegionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.StartIndex != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + i-- + dAtA[i] = 0x18 } - if len(m.Members) > 0 { - for _, e := range m.Members { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Member != nil { + { + size, err := m.Member.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - if m.Leader != nil { - l = m.Leader.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.EtcdLeader != nil { - l = m.EtcdLeader.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.TsoAllocatorLeaders) > 0 { - for k, v := range m.TsoAllocatorLeaders { - _ = k - _ = v - l = 0 - if v != nil { - l = v.Size() - l += 1 + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - mapEntrySize := 1 + len(k) + sovPdpb(uint64(len(k))) + l - n += mapEntrySize + 1 + sovPdpb(uint64(mapEntrySize)) + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetClusterInfoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *PeersStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetClusterInfoResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *PeersStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PeersStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.ServiceModes) > 0 { - l = 0 - for _, e := range m.ServiceModes { - l += sovPdpb(uint64(e)) - } - n += 1 + sovPdpb(uint64(l)) + l - } - if len(m.TsoUrls) > 0 { - for _, s := range m.TsoUrls { - l = len(s) - n += 1 + l + sovPdpb(uint64(l)) + if len(m.Peers) > 0 { + for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } } - return n + return len(dAtA) - i, nil } -func (m *PeerStats) Size() (n int) { - if m == nil { - return 0 +func (m *Peers) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *Peers) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Peers) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Peer != nil { - l = m.Peer.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.DownSeconds != 0 { - n += 1 + sovPdpb(uint64(m.DownSeconds)) + if len(m.Peers) > 0 { + for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return n + return len(dAtA) - i, nil } -func (m *RegionHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 +func (m *SyncRegionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SyncRegionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Leader != nil { - l = m.Leader.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.PendingPeers) > 0 { + for iNdEx := len(m.PendingPeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PendingPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } } if len(m.DownPeers) > 0 { - for _, e := range m.DownPeers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + for iNdEx := len(m.DownPeers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DownPeers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 } } - if len(m.PendingPeers) > 0 { - for _, e := range m.PendingPeers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.Buckets) > 0 { + for iNdEx := len(m.Buckets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Buckets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 } } - if m.BytesWritten != 0 { - n += 1 + sovPdpb(uint64(m.BytesWritten)) + if len(m.RegionLeaders) > 0 { + for iNdEx := len(m.RegionLeaders) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RegionLeaders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } } - if m.BytesRead != 0 { - n += 1 + sovPdpb(uint64(m.BytesRead)) + if len(m.RegionStats) > 0 { + for iNdEx := len(m.RegionStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RegionStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - if m.KeysWritten != 0 { - n += 1 + sovPdpb(uint64(m.KeysWritten)) + if m.StartIndex != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StartIndex)) + i-- + dAtA[i] = 0x18 } - if m.KeysRead != 0 { - n += 1 + sovPdpb(uint64(m.KeysRead)) - } - if m.ApproximateSize != 0 { - n += 1 + sovPdpb(uint64(m.ApproximateSize)) - } - if m.Interval != nil { - l = m.Interval.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ApproximateKeys != 0 { - n += 1 + sovPdpb(uint64(m.ApproximateKeys)) - } - if m.Term != 0 { - n += 1 + sovPdpb(uint64(m.Term)) - } - if m.ReplicationStatus != nil { - l = m.ReplicationStatus.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.QueryStats != nil { - l = m.QueryStats.Size() - n += 2 + l + sovPdpb(uint64(l)) - } - if m.CpuUsage != 0 { - n += 2 + sovPdpb(uint64(m.CpuUsage)) + if len(m.Regions) > 0 { + for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } } - if m.ApproximateKvSize != 0 { - n += 2 + sovPdpb(uint64(m.ApproximateKvSize)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ChangePeer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Peer != nil { - l = m.Peer.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ChangeType != 0 { - n += 1 + sovPdpb(uint64(m.ChangeType)) +func (m *GetOperatorRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *ChangePeerV2) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Changes) > 0 { - for _, e := range m.Changes { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - return n +func (m *GetOperatorRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *TransferLeader) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetOperatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Peer != nil { - l = m.Peer.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x10 } - if len(m.Peers) > 0 { - for _, e := range m.Peers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *Merge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Target != nil { - l = m.Target.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *GetOperatorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SplitRegion) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Policy != 0 { - n += 1 + sovPdpb(uint64(m.Policy)) - } - if len(m.Keys) > 0 { - for _, b := range m.Keys { - l = len(b) - n += 1 + l + sovPdpb(uint64(l)) - } - } - return n +func (m *GetOperatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SwitchWitness) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetOperatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.PeerId != 0 { - n += 1 + sovPdpb(uint64(m.PeerId)) + if len(m.Kind) > 0 { + i -= len(m.Kind) + copy(dAtA[i:], m.Kind) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Kind))) + i-- + dAtA[i] = 0x2a } - if m.IsWitness { - n += 2 + if m.Status != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x20 } - return n -} - -func (m *BatchSwitchWitness) Size() (n int) { - if m == nil { - return 0 + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x1a } - var l int - _ = l - if len(m.SwitchWitnesses) > 0 { - for _, e := range m.SwitchWitnesses { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.RegionId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RegionId)) + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *RegionHeartbeatResponse) Size() (n int) { - if m == nil { - return 0 +func (m *SyncMaxTSRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SyncMaxTSRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncMaxTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.SkipCheck { + i-- + if m.SkipCheck { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 } - if m.ChangePeer != nil { - l = m.ChangePeer.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.MaxTs != nil { + { + size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if m.TransferLeader != nil { - l = m.TransferLeader.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.RegionId != 0 { - n += 1 + sovPdpb(uint64(m.RegionId)) - } - if m.RegionEpoch != nil { - l = m.RegionEpoch.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.TargetPeer != nil { - l = m.TargetPeer.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Merge != nil { - l = m.Merge.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.SplitRegion != nil { - l = m.SplitRegion.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ChangePeerV2 != nil { - l = m.ChangePeerV2.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.SwitchWitnesses != nil { - l = m.SwitchWitnesses.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *AskSplitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *SyncMaxTSResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *AskSplitResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *SyncMaxTSResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncMaxTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.SyncedDcs) > 0 { + for iNdEx := len(m.SyncedDcs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SyncedDcs[iNdEx]) + copy(dAtA[i:], m.SyncedDcs[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.SyncedDcs[iNdEx]))) + i-- + dAtA[i] = 0x1a + } } - if m.NewRegionId != 0 { - n += 1 + sovPdpb(uint64(m.NewRegionId)) + if m.MaxLocalTs != nil { + { + size, err := m.MaxLocalTs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - if len(m.NewPeerIds) > 0 { - l = 0 - for _, e := range m.NewPeerIds { - l += sovPdpb(uint64(e)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - n += 1 + sovPdpb(uint64(l)) + l + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ReportSplitRequest) Size() (n int) { - if m == nil { - return 0 +func (m *SplitRegionsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SplitRegionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.RetryLimit != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) + i-- + dAtA[i] = 0x18 } - if m.Left != nil { - l = m.Left.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.SplitKeys) > 0 { + for iNdEx := len(m.SplitKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SplitKeys[iNdEx]) + copy(dAtA[i:], m.SplitKeys[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } - if m.Right != nil { - l = m.Right.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ReportSplitResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *SplitRegionsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *AskBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *SplitRegionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.RegionsId) > 0 { + dAtA161 := make([]byte, len(m.RegionsId)*10) + var j160 int + for _, num := range m.RegionsId { + for num >= 1<<7 { + dAtA161[j160] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j160++ + } + dAtA161[j160] = uint8(num) + j160++ + } + i -= j160 + copy(dAtA[i:], dAtA161[:j160]) + i = encodeVarintPdpb(dAtA, i, uint64(j160)) + i-- + dAtA[i] = 0x1a } - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.FinishedPercentage != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.FinishedPercentage)) + i-- + dAtA[i] = 0x10 } - if m.SplitCount != 0 { - n += 1 + sovPdpb(uint64(m.SplitCount)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SplitID) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NewRegionId != 0 { - n += 1 + sovPdpb(uint64(m.NewRegionId)) - } - if len(m.NewPeerIds) > 0 { - l = 0 - for _, e := range m.NewPeerIds { - l += sovPdpb(uint64(e)) - } - n += 1 + sovPdpb(uint64(l)) + l +func (m *SplitAndScatterRegionsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *AskBatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *SplitAndScatterRegionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitAndScatterRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.RetryLimit != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.RetryLimit)) + i-- + dAtA[i] = 0x20 } - if len(m.Ids) > 0 { - for _, e := range m.Ids { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if len(m.Group) > 0 { + i -= len(m.Group) + copy(dAtA[i:], m.Group) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.Group))) + i-- + dAtA[i] = 0x1a } - return n -} - -func (m *ReportBatchSplitRequest) Size() (n int) { - if m == nil { - return 0 + if len(m.SplitKeys) > 0 { + for iNdEx := len(m.SplitKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SplitKeys[iNdEx]) + copy(dAtA[i:], m.SplitKeys[iNdEx]) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.SplitKeys[iNdEx]))) + i-- + dAtA[i] = 0x12 + } } - var l int - _ = l if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.Regions) > 0 { - for _, e := range m.Regions { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ReportBatchSplitResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) +func (m *SplitAndScatterRegionsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *TimeInterval) Size() (n int) { - if m == nil { - return 0 - } +func (m *SplitAndScatterRegionsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SplitAndScatterRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.StartTimestamp != 0 { - n += 1 + sovPdpb(uint64(m.StartTimestamp)) + if len(m.RegionsId) > 0 { + dAtA165 := make([]byte, len(m.RegionsId)*10) + var j164 int + for _, num := range m.RegionsId { + for num >= 1<<7 { + dAtA165[j164] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j164++ + } + dAtA165[j164] = uint8(num) + j164++ + } + i -= j164 + copy(dAtA[i:], dAtA165[:j164]) + i = encodeVarintPdpb(dAtA, i, uint64(j164)) + i-- + dAtA[i] = 0x22 } - if m.EndTimestamp != 0 { - n += 1 + sovPdpb(uint64(m.EndTimestamp)) + if m.ScatterFinishedPercentage != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.ScatterFinishedPercentage)) + i-- + dAtA[i] = 0x18 } - return n + if m.SplitFinishedPercentage != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.SplitFinishedPercentage)) + i-- + dAtA[i] = 0x10 + } + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *RecordPair) Size() (n int) { - if m == nil { - return 0 +func (m *GetDCLocationInfoRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetDCLocationInfoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetDCLocationInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) + if len(m.DcLocation) > 0 { + i -= len(m.DcLocation) + copy(dAtA[i:], m.DcLocation) + i = encodeVarintPdpb(dAtA, i, uint64(len(m.DcLocation))) + i-- + dAtA[i] = 0x12 } - if m.Value != 0 { - n += 1 + sovPdpb(uint64(m.Value)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PeerStat) Size() (n int) { - if m == nil { - return 0 +func (m *GetDCLocationInfoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetDCLocationInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetDCLocationInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.RegionId != 0 { - n += 1 + sovPdpb(uint64(m.RegionId)) - } - if m.ReadKeys != 0 { - n += 1 + sovPdpb(uint64(m.ReadKeys)) - } - if m.ReadBytes != 0 { - n += 1 + sovPdpb(uint64(m.ReadBytes)) - } - if m.QueryStats != nil { - l = m.QueryStats.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.MaxTs != nil { + { + size, err := m.MaxTs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - if m.WrittenKeys != 0 { - n += 1 + sovPdpb(uint64(m.WrittenKeys)) + if m.Suffix != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Suffix)) + i-- + dAtA[i] = 0x10 } - if m.WrittenBytes != 0 { - n += 1 + sovPdpb(uint64(m.WrittenBytes)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *StoreStats) Size() (n int) { - if m == nil { - return 0 +func (m *QueryStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *QueryStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.StoreId != 0 { - n += 1 + sovPdpb(uint64(m.StoreId)) - } - if m.Capacity != 0 { - n += 1 + sovPdpb(uint64(m.Capacity)) - } - if m.Available != 0 { - n += 1 + sovPdpb(uint64(m.Available)) - } - if m.RegionCount != 0 { - n += 1 + sovPdpb(uint64(m.RegionCount)) - } - if m.SendingSnapCount != 0 { - n += 1 + sovPdpb(uint64(m.SendingSnapCount)) - } - if m.ReceivingSnapCount != 0 { - n += 1 + sovPdpb(uint64(m.ReceivingSnapCount)) - } - if m.StartTime != 0 { - n += 1 + sovPdpb(uint64(m.StartTime)) - } - if m.ApplyingSnapCount != 0 { - n += 1 + sovPdpb(uint64(m.ApplyingSnapCount)) + if m.Rollback != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Rollback)) + i-- + dAtA[i] = 0x58 } - if m.IsBusy { - n += 2 + if m.Commit != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Commit)) + i-- + dAtA[i] = 0x50 } - if m.UsedSize != 0 { - n += 1 + sovPdpb(uint64(m.UsedSize)) + if m.AcquirePessimisticLock != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.AcquirePessimisticLock)) + i-- + dAtA[i] = 0x48 } - if m.BytesWritten != 0 { - n += 1 + sovPdpb(uint64(m.BytesWritten)) + if m.Prewrite != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Prewrite)) + i-- + dAtA[i] = 0x40 } - if m.KeysWritten != 0 { - n += 1 + sovPdpb(uint64(m.KeysWritten)) + if m.Put != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Put)) + i-- + dAtA[i] = 0x38 } - if m.BytesRead != 0 { - n += 1 + sovPdpb(uint64(m.BytesRead)) + if m.DeleteRange != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.DeleteRange)) + i-- + dAtA[i] = 0x30 } - if m.KeysRead != 0 { - n += 1 + sovPdpb(uint64(m.KeysRead)) + if m.Delete != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Delete)) + i-- + dAtA[i] = 0x28 } - if m.Interval != nil { - l = m.Interval.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Coprocessor != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Coprocessor)) + i-- + dAtA[i] = 0x20 } - if len(m.CpuUsages) > 0 { - for _, e := range m.CpuUsages { - l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) - } + if m.Scan != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Scan)) + i-- + dAtA[i] = 0x18 } - if len(m.ReadIoRates) > 0 { - for _, e := range m.ReadIoRates { - l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) - } + if m.Get != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Get)) + i-- + dAtA[i] = 0x10 } - if len(m.WriteIoRates) > 0 { - for _, e := range m.WriteIoRates { - l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) - } + if m.GC != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.GC)) + i-- + dAtA[i] = 0x8 } - if len(m.OpLatencies) > 0 { - for _, e := range m.OpLatencies { - l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) - } + return len(dAtA) - i, nil +} + +func (m *ReportBucketsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.PeerStats) > 0 { - for _, e := range m.PeerStats { - l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) + return dAtA[:n], nil +} + +func (m *ReportBucketsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportBucketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Buckets != nil { + { + size, err := m.Buckets.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x1a } - if m.QueryStats != nil { - l = m.QueryStats.Size() - n += 2 + l + sovPdpb(uint64(l)) - } - if m.SlowScore != 0 { - n += 2 + sovPdpb(uint64(m.SlowScore)) - } - if len(m.DamagedRegionsId) > 0 { - l = 0 - for _, e := range m.DamagedRegionsId { - l += sovPdpb(uint64(e)) + if m.RegionEpoch != nil { + { + size, err := m.RegionEpoch.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - n += 2 + sovPdpb(uint64(l)) + l - } - if m.IsApplyBusy { - n += 3 + i-- + dAtA[i] = 0x12 } - if len(m.SnapshotStats) > 0 { - for _, e := range m.SnapshotStats { - l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.SlowTrend != nil { - l = m.SlowTrend.Size() - n += 2 + l + sovPdpb(uint64(l)) - } - if m.IsGrpcPaused { - n += 3 - } - if m.TotalMemory != 0 { - n += 2 + sovPdpb(uint64(m.TotalMemory)) - } - if m.UsedMemory != 0 { - n += 2 + sovPdpb(uint64(m.UsedMemory)) - } - return n + return len(dAtA) - i, nil } -func (m *SlowTrend) Size() (n int) { - if m == nil { - return 0 +func (m *ReportBucketsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *ReportBucketsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportBucketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.CauseValue != 0 { - n += 9 - } - if m.CauseRate != 0 { - n += 9 - } - if m.ResultValue != 0 { - n += 9 - } - if m.ResultRate != 0 { - n += 9 + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SnapshotStat) Size() (n int) { - if m == nil { - return 0 +func (m *ReportMinResolvedTsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *ReportMinResolvedTsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportMinResolvedTsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.RegionId != 0 { - n += 1 + sovPdpb(uint64(m.RegionId)) - } - if m.GenerateDurationSec != 0 { - n += 1 + sovPdpb(uint64(m.GenerateDurationSec)) - } - if m.SendDurationSec != 0 { - n += 1 + sovPdpb(uint64(m.SendDurationSec)) + if m.MinResolvedTs != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.MinResolvedTs)) + i-- + dAtA[i] = 0x18 } - if m.TotalDurationSec != 0 { - n += 1 + sovPdpb(uint64(m.TotalDurationSec)) + if m.StoreId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.StoreId)) + i-- + dAtA[i] = 0x10 } - if m.TransportSize != 0 { - n += 1 + sovPdpb(uint64(m.TransportSize)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PeerReport) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RaftState != nil { - l = m.RaftState.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.RegionState != nil { - l = m.RegionState.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.IsForceLeader { - n += 2 - } - if m.HasCommitMerge { - n += 2 - } - if m.AppliedIndex != 0 { - n += 1 + sovPdpb(uint64(m.AppliedIndex)) +func (m *ReportMinResolvedTsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *StoreReport) Size() (n int) { - if m == nil { - return 0 - } +func (m *ReportMinResolvedTsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportMinResolvedTsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.PeerReports) > 0 { - for _, e := range m.PeerReports { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.Step != 0 { - n += 1 + sovPdpb(uint64(m.Step)) - } - return n + return len(dAtA) - i, nil } -func (m *StoreHeartbeatRequest) Size() (n int) { - if m == nil { - return 0 +func (m *SetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SetExternalTimestampRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetExternalTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Stats != nil { - l = m.Stats.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.StoreReport != nil { - l = m.StoreReport.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Timestamp != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x10 } - if m.DrAutosyncStatus != nil { - l = m.DrAutosyncStatus.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DemoteFailedVoters) Size() (n int) { - if m == nil { - return 0 +func (m *SetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SetExternalTimestampResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetExternalTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.RegionId != 0 { - n += 1 + sovPdpb(uint64(m.RegionId)) - } - if len(m.FailedVoters) > 0 { - for _, e := range m.FailedVoters { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ForceLeader) Size() (n int) { - if m == nil { - return 0 +func (m *GetExternalTimestampRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetExternalTimestampRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetExternalTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.FailedStores) > 0 { - l = 0 - for _, e := range m.FailedStores { - l += sovPdpb(uint64(e)) - } - n += 1 + sovPdpb(uint64(l)) + l - } - if len(m.EnterForceLeaders) > 0 { - l = 0 - for _, e := range m.EnterForceLeaders { - l += sovPdpb(uint64(e)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - n += 1 + sovPdpb(uint64(l)) + l + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *RecoveryPlan) Size() (n int) { - if m == nil { - return 0 +func (m *GetExternalTimestampResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetExternalTimestampResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetExternalTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Creates) > 0 { - for _, e := range m.Creates { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - if len(m.Updates) > 0 { - for _, e := range m.Updates { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - if len(m.Tombstones) > 0 { - l = 0 - for _, e := range m.Tombstones { - l += sovPdpb(uint64(e)) - } - n += 1 + sovPdpb(uint64(l)) + l + if m.Timestamp != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x10 } - if len(m.Demotes) > 0 { - for _, e := range m.Demotes { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - if m.ForceLeader != nil { - l = m.ForceLeader.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Step != 0 { - n += 1 + sovPdpb(uint64(m.Step)) - } - return n + return len(dAtA) - i, nil } -func (m *AwakenRegions) Size() (n int) { - if m == nil { - return 0 +func (m *GetMinTSRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetMinTSRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMinTSRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.AbnormalStores) > 0 { - l = 0 - for _, e := range m.AbnormalStores { - l += sovPdpb(uint64(e)) + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) } - n += 1 + sovPdpb(uint64(l)) + l + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *ControlGrpc) Size() (n int) { - if m == nil { - return 0 +func (m *GetMinTSResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetMinTSResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetMinTSResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.CtrlEvent != 0 { - n += 1 + sovPdpb(uint64(m.CtrlEvent)) + if m.Timestamp != nil { + { + size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + if m.Header != nil { + { + size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *StoreHeartbeatResponse) Size() (n int) { +func encodeVarintPdpb(dAtA []byte, offset int, v uint64) int { + offset -= sovPdpb(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *WatchGlobalConfigRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ReplicationStatus != nil { - l = m.ReplicationStatus.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - l = len(m.ClusterVersion) + l = len(m.ConfigPath) if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.RequireDetailedReport { - n += 2 - } - if m.RecoveryPlan != nil { - l = m.RecoveryPlan.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.AwakenRegions != nil { - l = m.AwakenRegions.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.ControlGrpc != nil { - l = m.ControlGrpc.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) } return n } -func (m *ScatterRegionRequest) Size() (n int) { +func (m *WatchGlobalConfigResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.RegionId != 0 { - n += 1 + sovPdpb(uint64(m.RegionId)) - } - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Leader != nil { - l = m.Leader.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - l = len(m.Group) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if len(m.RegionsId) > 0 { - l = 0 - for _, e := range m.RegionsId { - l += sovPdpb(uint64(e)) + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) } - n += 1 + sovPdpb(uint64(l)) + l } - if m.RetryLimit != 0 { - n += 1 + sovPdpb(uint64(m.RetryLimit)) + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) } - if m.SkipStoreLimit { - n += 2 + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *ScatterRegionResponse) Size() (n int) { +func (m *StoreGlobalConfigRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } } - if m.FinishedPercentage != 0 { - n += 1 + sovPdpb(uint64(m.FinishedPercentage)) + l = len(m.ConfigPath) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *GetGCSafePointRequest) Size() (n int) { +func (m *StoreGlobalConfigResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + if m.Error != nil { + l = m.Error.Size() n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *GetGCSafePointResponse) Size() (n int) { +func (m *LoadGlobalConfigRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.Names) > 0 { + for _, s := range m.Names { + l = len(s) + n += 1 + l + sovPdpb(uint64(l)) + } } - if m.SafePoint != 0 { - n += 1 + sovPdpb(uint64(m.SafePoint)) + l = len(m.ConfigPath) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *UpdateGCSafePointRequest) Size() (n int) { +func (m *LoadGlobalConfigResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } } - if m.SafePoint != 0 { - n += 1 + sovPdpb(uint64(m.SafePoint)) + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) } return n } -func (m *UpdateGCSafePointResponse) Size() (n int) { +func (m *GlobalConfigItem) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + l = len(m.Name) + if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.NewSafePoint != 0 { - n += 1 + sovPdpb(uint64(m.NewSafePoint)) + l = len(m.Value) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Kind != 0 { + n += 1 + sovPdpb(uint64(m.Kind)) + } + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *UpdateServiceGCSafePointRequest) Size() (n int) { +func (m *RequestHeader) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + if m.ClusterId != 0 { + n += 1 + sovPdpb(uint64(m.ClusterId)) + } + if m.SenderId != 0 { + n += 1 + sovPdpb(uint64(m.SenderId)) + } + l = len(m.CallerId) + if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - l = len(m.ServiceId) + l = len(m.CallerComponent) if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.TTL != 0 { - n += 1 + sovPdpb(uint64(m.TTL)) + return n +} + +func (m *ResponseHeader) Size() (n int) { + if m == nil { + return 0 } - if m.SafePoint != 0 { - n += 1 + sovPdpb(uint64(m.SafePoint)) + var l int + _ = l + if m.ClusterId != 0 { + n += 1 + sovPdpb(uint64(m.ClusterId)) + } + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *UpdateServiceGCSafePointResponse) Size() (n int) { +func (m *Error) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Type != 0 { + n += 1 + sovPdpb(uint64(m.Type)) } - l = len(m.ServiceId) + l = len(m.Message) if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.TTL != 0 { - n += 1 + sovPdpb(uint64(m.TTL)) - } - if m.MinSafePoint != 0 { - n += 1 + sovPdpb(uint64(m.MinSafePoint)) - } return n } -func (m *GetGCSafePointV2Request) Size() (n int) { +func (m *TsoRequest) Size() (n int) { if m == nil { return 0 } @@ -19093,29 +18506,35 @@ func (m *GetGCSafePointV2Request) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.Count != 0 { + n += 1 + sovPdpb(uint64(m.Count)) + } + l = len(m.DcLocation) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *GetGCSafePointV2Response) Size() (n int) { +func (m *Timestamp) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if m.Physical != 0 { + n += 1 + sovPdpb(uint64(m.Physical)) } - if m.SafePoint != 0 { - n += 1 + sovPdpb(uint64(m.SafePoint)) + if m.Logical != 0 { + n += 1 + sovPdpb(uint64(m.Logical)) + } + if m.SuffixBits != 0 { + n += 1 + sovPdpb(uint64(m.SuffixBits)) } return n } -func (m *WatchGCSafePointV2Request) Size() (n int) { +func (m *TsoResponse) Size() (n int) { if m == nil { return 0 } @@ -19125,31 +18544,38 @@ func (m *WatchGCSafePointV2Request) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) + if m.Count != 0 { + n += 1 + sovPdpb(uint64(m.Count)) + } + if m.Timestamp != nil { + l = m.Timestamp.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *SafePointEvent) Size() (n int) { +func (m *BootstrapRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) } - if m.SafePoint != 0 { - n += 1 + sovPdpb(uint64(m.SafePoint)) + if m.Store != nil { + l = m.Store.Size() + n += 1 + l + sovPdpb(uint64(l)) } - if m.Type != 0 { - n += 1 + sovPdpb(uint64(m.Type)) + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *WatchGCSafePointV2Response) Size() (n int) { +func (m *BootstrapResponse) Size() (n int) { if m == nil { return 0 } @@ -19159,19 +18585,14 @@ func (m *WatchGCSafePointV2Response) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if len(m.Events) > 0 { - for _, e := range m.Events { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - if m.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *UpdateGCSafePointV2Request) Size() (n int) { +func (m *IsBootstrappedRequest) Size() (n int) { if m == nil { return 0 } @@ -19181,16 +18602,10 @@ func (m *UpdateGCSafePointV2Request) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) - } - if m.SafePoint != 0 { - n += 1 + sovPdpb(uint64(m.SafePoint)) - } return n } -func (m *UpdateGCSafePointV2Response) Size() (n int) { +func (m *IsBootstrappedResponse) Size() (n int) { if m == nil { return 0 } @@ -19200,13 +18615,13 @@ func (m *UpdateGCSafePointV2Response) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.NewSafePoint != 0 { - n += 1 + sovPdpb(uint64(m.NewSafePoint)) + if m.Bootstrapped { + n += 2 } return n } -func (m *UpdateServiceSafePointV2Request) Size() (n int) { +func (m *AllocIDRequest) Size() (n int) { if m == nil { return 0 } @@ -19216,23 +18631,10 @@ func (m *UpdateServiceSafePointV2Request) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) - } - l = len(m.ServiceId) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if m.SafePoint != 0 { - n += 1 + sovPdpb(uint64(m.SafePoint)) - } - if m.Ttl != 0 { - n += 1 + sovPdpb(uint64(m.Ttl)) - } return n } -func (m *UpdateServiceSafePointV2Response) Size() (n int) { +func (m *AllocIDResponse) Size() (n int) { if m == nil { return 0 } @@ -19242,20 +18644,13 @@ func (m *UpdateServiceSafePointV2Response) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - l = len(m.ServiceId) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if m.Ttl != 0 { - n += 1 + sovPdpb(uint64(m.Ttl)) - } - if m.MinSafePoint != 0 { - n += 1 + sovPdpb(uint64(m.MinSafePoint)) + if m.Id != 0 { + n += 1 + sovPdpb(uint64(m.Id)) } return n } -func (m *GetAllGCSafePointV2Request) Size() (n int) { +func (m *IsSnapshotRecoveringRequest) Size() (n int) { if m == nil { return 0 } @@ -19268,22 +18663,23 @@ func (m *GetAllGCSafePointV2Request) Size() (n int) { return n } -func (m *GCSafePointV2) Size() (n int) { +func (m *IsSnapshotRecoveringResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) } - if m.GcSafePoint != 0 { - n += 1 + sovPdpb(uint64(m.GcSafePoint)) + if m.Marked { + n += 2 } return n } -func (m *GetAllGCSafePointV2Response) Size() (n int) { +func (m *GetStoreRequest) Size() (n int) { if m == nil { return 0 } @@ -19293,40 +18689,34 @@ func (m *GetAllGCSafePointV2Response) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if len(m.GcSafePoints) > 0 { - for _, e := range m.GcSafePoints { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } - } - if m.Revision != 0 { - n += 1 + sovPdpb(uint64(m.Revision)) + if m.StoreId != 0 { + n += 1 + sovPdpb(uint64(m.StoreId)) } return n } -func (m *RegionStat) Size() (n int) { +func (m *GetStoreResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.BytesWritten != 0 { - n += 1 + sovPdpb(uint64(m.BytesWritten)) - } - if m.BytesRead != 0 { - n += 1 + sovPdpb(uint64(m.BytesRead)) + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) } - if m.KeysWritten != 0 { - n += 1 + sovPdpb(uint64(m.KeysWritten)) + if m.Store != nil { + l = m.Store.Size() + n += 1 + l + sovPdpb(uint64(l)) } - if m.KeysRead != 0 { - n += 1 + sovPdpb(uint64(m.KeysRead)) + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *SyncRegionRequest) Size() (n int) { +func (m *PutStoreRequest) Size() (n int) { if m == nil { return 0 } @@ -19336,47 +18726,47 @@ func (m *SyncRegionRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.Member != nil { - l = m.Member.Size() + if m.Store != nil { + l = m.Store.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.StartIndex != 0 { - n += 1 + sovPdpb(uint64(m.StartIndex)) - } return n } -func (m *PeersStats) Size() (n int) { +func (m *PutStoreResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Peers) > 0 { - for _, e := range m.Peers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *Peers) Size() (n int) { +func (m *GetAllStoresRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Peers) > 0 { - for _, e := range m.Peers { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.ExcludeTombstoneStores { + n += 2 } return n } -func (m *SyncRegionResponse) Size() (n int) { +func (m *GetAllStoresResponse) Size() (n int) { if m == nil { return 0 } @@ -19386,49 +18776,73 @@ func (m *SyncRegionResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if len(m.Regions) > 0 { - for _, e := range m.Regions { + if len(m.Stores) > 0 { + for _, e := range m.Stores { l = e.Size() n += 1 + l + sovPdpb(uint64(l)) } } - if m.StartIndex != 0 { - n += 1 + sovPdpb(uint64(m.StartIndex)) + return n +} + +func (m *GetRegionRequest) Size() (n int) { + if m == nil { + return 0 } - if len(m.RegionStats) > 0 { - for _, e := range m.RegionStats { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) } - if len(m.RegionLeaders) > 0 { - for _, e := range m.RegionLeaders { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + l = len(m.RegionKey) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) } - if len(m.Buckets) > 0 { - for _, e := range m.Buckets { - l = e.Size() - n += 1 + l + sovPdpb(uint64(l)) - } + if m.NeedBuckets { + n += 2 + } + return n +} + +func (m *GetRegionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Leader != nil { + l = m.Leader.Size() + n += 1 + l + sovPdpb(uint64(l)) } if len(m.DownPeers) > 0 { for _, e := range m.DownPeers { l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) + n += 1 + l + sovPdpb(uint64(l)) } } if len(m.PendingPeers) > 0 { for _, e := range m.PendingPeers { l = e.Size() - n += 2 + l + sovPdpb(uint64(l)) + n += 1 + l + sovPdpb(uint64(l)) } } + if m.Buckets != nil { + l = m.Buckets.Size() + n += 1 + l + sovPdpb(uint64(l)) + } return n } -func (m *GetOperatorRequest) Size() (n int) { +func (m *GetRegionByIDRequest) Size() (n int) { if m == nil { return 0 } @@ -19441,10 +18855,13 @@ func (m *GetOperatorRequest) Size() (n int) { if m.RegionId != 0 { n += 1 + sovPdpb(uint64(m.RegionId)) } + if m.NeedBuckets { + n += 2 + } return n } -func (m *GetOperatorResponse) Size() (n int) { +func (m *ScanRegionsRequest) Size() (n int) { if m == nil { return 0 } @@ -19454,44 +18871,54 @@ func (m *GetOperatorResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.RegionId != 0 { - n += 1 + sovPdpb(uint64(m.RegionId)) - } - l = len(m.Desc) + l = len(m.StartKey) if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.Status != 0 { - n += 1 + sovPdpb(uint64(m.Status)) + if m.Limit != 0 { + n += 1 + sovPdpb(uint64(m.Limit)) } - l = len(m.Kind) + l = len(m.EndKey) if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *SyncMaxTSRequest) Size() (n int) { +func (m *Region) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + if m.Region != nil { + l = m.Region.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.MaxTs != nil { - l = m.MaxTs.Size() + if m.Leader != nil { + l = m.Leader.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.SkipCheck { - n += 2 + if len(m.DownPeers) > 0 { + for _, e := range m.DownPeers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.PendingPeers) > 0 { + for _, e := range m.PendingPeers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.Buckets != nil { + l = m.Buckets.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *SyncMaxTSResponse) Size() (n int) { +func (m *ScanRegionsResponse) Size() (n int) { if m == nil { return 0 } @@ -19501,42 +18928,45 @@ func (m *SyncMaxTSResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.MaxLocalTs != nil { - l = m.MaxLocalTs.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.RegionMetas) > 0 { + for _, e := range m.RegionMetas { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } } - if len(m.SyncedDcs) > 0 { - for _, s := range m.SyncedDcs { - l = len(s) + if len(m.Leaders) > 0 { + for _, e := range m.Leaders { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.Regions) > 0 { + for _, e := range m.Regions { + l = e.Size() n += 1 + l + sovPdpb(uint64(l)) } } return n } -func (m *SplitRegionsRequest) Size() (n int) { +func (m *KeyRange) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + l = len(m.StartKey) + if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if len(m.SplitKeys) > 0 { - for _, b := range m.SplitKeys { - l = len(b) - n += 1 + l + sovPdpb(uint64(l)) - } - } - if m.RetryLimit != 0 { - n += 1 + sovPdpb(uint64(m.RetryLimit)) + l = len(m.EndKey) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *SplitRegionsResponse) Size() (n int) { +func (m *BatchScanRegionsRequest) Size() (n int) { if m == nil { return 0 } @@ -19546,20 +18976,25 @@ func (m *SplitRegionsResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.FinishedPercentage != 0 { - n += 1 + sovPdpb(uint64(m.FinishedPercentage)) + if m.NeedBuckets { + n += 2 } - if len(m.RegionsId) > 0 { - l = 0 - for _, e := range m.RegionsId { - l += sovPdpb(uint64(e)) + if len(m.Ranges) > 0 { + for _, e := range m.Ranges { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) } - n += 1 + sovPdpb(uint64(l)) + l + } + if m.Limit != 0 { + n += 1 + sovPdpb(uint64(m.Limit)) + } + if m.ContainAllKeyRange { + n += 2 } return n } -func (m *SplitAndScatterRegionsRequest) Size() (n int) { +func (m *BatchScanRegionsResponse) Size() (n int) { if m == nil { return 0 } @@ -19569,23 +19004,16 @@ func (m *SplitAndScatterRegionsRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if len(m.SplitKeys) > 0 { - for _, b := range m.SplitKeys { - l = len(b) + if len(m.Regions) > 0 { + for _, e := range m.Regions { + l = e.Size() n += 1 + l + sovPdpb(uint64(l)) } } - l = len(m.Group) - if l > 0 { - n += 1 + l + sovPdpb(uint64(l)) - } - if m.RetryLimit != 0 { - n += 1 + sovPdpb(uint64(m.RetryLimit)) - } return n } -func (m *SplitAndScatterRegionsResponse) Size() (n int) { +func (m *GetClusterConfigRequest) Size() (n int) { if m == nil { return 0 } @@ -19595,23 +19023,10 @@ func (m *SplitAndScatterRegionsResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.SplitFinishedPercentage != 0 { - n += 1 + sovPdpb(uint64(m.SplitFinishedPercentage)) - } - if m.ScatterFinishedPercentage != 0 { - n += 1 + sovPdpb(uint64(m.ScatterFinishedPercentage)) - } - if len(m.RegionsId) > 0 { - l = 0 - for _, e := range m.RegionsId { - l += sovPdpb(uint64(e)) - } - n += 1 + sovPdpb(uint64(l)) + l - } return n } -func (m *GetDCLocationInfoRequest) Size() (n int) { +func (m *GetClusterConfigResponse) Size() (n int) { if m == nil { return 0 } @@ -19621,14 +19036,14 @@ func (m *GetDCLocationInfoRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - l = len(m.DcLocation) - if l > 0 { + if m.Cluster != nil { + l = m.Cluster.Size() n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *GetDCLocationInfoResponse) Size() (n int) { +func (m *PutClusterConfigRequest) Size() (n int) { if m == nil { return 0 } @@ -19638,80 +19053,74 @@ func (m *GetDCLocationInfoResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.Suffix != 0 { - n += 1 + sovPdpb(uint64(m.Suffix)) - } - if m.MaxTs != nil { - l = m.MaxTs.Size() + if m.Cluster != nil { + l = m.Cluster.Size() n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *QueryStats) Size() (n int) { +func (m *PutClusterConfigResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.GC != 0 { - n += 1 + sovPdpb(uint64(m.GC)) - } - if m.Get != 0 { - n += 1 + sovPdpb(uint64(m.Get)) - } - if m.Scan != 0 { - n += 1 + sovPdpb(uint64(m.Scan)) - } - if m.Coprocessor != 0 { - n += 1 + sovPdpb(uint64(m.Coprocessor)) - } - if m.Delete != 0 { - n += 1 + sovPdpb(uint64(m.Delete)) - } - if m.DeleteRange != 0 { - n += 1 + sovPdpb(uint64(m.DeleteRange)) - } - if m.Put != 0 { - n += 1 + sovPdpb(uint64(m.Put)) - } - if m.Prewrite != 0 { - n += 1 + sovPdpb(uint64(m.Prewrite)) - } - if m.AcquirePessimisticLock != 0 { - n += 1 + sovPdpb(uint64(m.AcquirePessimisticLock)) - } - if m.Commit != 0 { - n += 1 + sovPdpb(uint64(m.Commit)) - } - if m.Rollback != 0 { - n += 1 + sovPdpb(uint64(m.Rollback)) + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *ReportBucketsRequest) Size() (n int) { +func (m *Member) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + l = len(m.Name) + if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.RegionEpoch != nil { - l = m.RegionEpoch.Size() + if m.MemberId != 0 { + n += 1 + sovPdpb(uint64(m.MemberId)) + } + if len(m.PeerUrls) > 0 { + for _, s := range m.PeerUrls { + l = len(s) + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.ClientUrls) > 0 { + for _, s := range m.ClientUrls { + l = len(s) + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.LeaderPriority != 0 { + n += 1 + sovPdpb(uint64(m.LeaderPriority)) + } + l = len(m.DeployPath) + if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } - if m.Buckets != nil { - l = m.Buckets.Size() + l = len(m.BinaryVersion) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.GitHash) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.DcLocation) + if l > 0 { n += 1 + l + sovPdpb(uint64(l)) } return n } -func (m *ReportBucketsResponse) Size() (n int) { +func (m *GetMembersRequest) Size() (n int) { if m == nil { return 0 } @@ -19724,7 +19133,7 @@ func (m *ReportBucketsResponse) Size() (n int) { return n } -func (m *ReportMinResolvedTsRequest) Size() (n int) { +func (m *GetMembersResponse) Size() (n int) { if m == nil { return 0 } @@ -19734,16 +19143,37 @@ func (m *ReportMinResolvedTsRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.StoreId != 0 { - n += 1 + sovPdpb(uint64(m.StoreId)) + if len(m.Members) > 0 { + for _, e := range m.Members { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } } - if m.MinResolvedTs != 0 { - n += 1 + sovPdpb(uint64(m.MinResolvedTs)) + if m.Leader != nil { + l = m.Leader.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.EtcdLeader != nil { + l = m.EtcdLeader.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.TsoAllocatorLeaders) > 0 { + for k, v := range m.TsoAllocatorLeaders { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovPdpb(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovPdpb(uint64(len(k))) + l + n += mapEntrySize + 1 + sovPdpb(uint64(mapEntrySize)) + } } return n } -func (m *ReportMinResolvedTsResponse) Size() (n int) { +func (m *GetClusterInfoRequest) Size() (n int) { if m == nil { return 0 } @@ -19756,7 +19186,7 @@ func (m *ReportMinResolvedTsResponse) Size() (n int) { return n } -func (m *SetExternalTimestampRequest) Size() (n int) { +func (m *GetClusterInfoResponse) Size() (n int) { if m == nil { return 0 } @@ -19766,26 +19196,39 @@ func (m *SetExternalTimestampRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.Timestamp != 0 { - n += 1 + sovPdpb(uint64(m.Timestamp)) + if len(m.ServiceModes) > 0 { + l = 0 + for _, e := range m.ServiceModes { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + if len(m.TsoUrls) > 0 { + for _, s := range m.TsoUrls { + l = len(s) + n += 1 + l + sovPdpb(uint64(l)) + } } return n } -func (m *SetExternalTimestampResponse) Size() (n int) { +func (m *PeerStats) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + if m.Peer != nil { + l = m.Peer.Size() n += 1 + l + sovPdpb(uint64(l)) } + if m.DownSeconds != 0 { + n += 1 + sovPdpb(uint64(m.DownSeconds)) + } return n } -func (m *GetExternalTimestampRequest) Size() (n int) { +func (m *RegionHeartbeatRequest) Size() (n int) { if m == nil { return 0 } @@ -19795,62 +19238,2297 @@ func (m *GetExternalTimestampRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Leader != nil { + l = m.Leader.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.DownPeers) > 0 { + for _, e := range m.DownPeers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.PendingPeers) > 0 { + for _, e := range m.PendingPeers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.BytesWritten != 0 { + n += 1 + sovPdpb(uint64(m.BytesWritten)) + } + if m.BytesRead != 0 { + n += 1 + sovPdpb(uint64(m.BytesRead)) + } + if m.KeysWritten != 0 { + n += 1 + sovPdpb(uint64(m.KeysWritten)) + } + if m.KeysRead != 0 { + n += 1 + sovPdpb(uint64(m.KeysRead)) + } + if m.ApproximateSize != 0 { + n += 1 + sovPdpb(uint64(m.ApproximateSize)) + } + if m.Interval != nil { + l = m.Interval.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.ApproximateKeys != 0 { + n += 1 + sovPdpb(uint64(m.ApproximateKeys)) + } + if m.Term != 0 { + n += 1 + sovPdpb(uint64(m.Term)) + } + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.QueryStats != nil { + l = m.QueryStats.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + if m.CpuUsage != 0 { + n += 2 + sovPdpb(uint64(m.CpuUsage)) + } + if m.ApproximateKvSize != 0 { + n += 2 + sovPdpb(uint64(m.ApproximateKvSize)) + } return n } -func (m *GetExternalTimestampResponse) Size() (n int) { +func (m *ChangePeer) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + if m.Peer != nil { + l = m.Peer.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.Timestamp != 0 { - n += 1 + sovPdpb(uint64(m.Timestamp)) + if m.ChangeType != 0 { + n += 1 + sovPdpb(uint64(m.ChangeType)) } return n } -func (m *GetMinTSRequest) Size() (n int) { +func (m *ChangePeerV2) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovPdpb(uint64(l)) + if len(m.Changes) > 0 { + for _, e := range m.Changes { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } } return n } -func (m *GetMinTSResponse) Size() (n int) { +func (m *TransferLeader) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Header != nil { - l = m.Header.Size() + if m.Peer != nil { + l = m.Peer.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.Timestamp != nil { - l = m.Timestamp.Size() + if len(m.Peers) > 0 { + for _, e := range m.Peers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *Merge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Target != nil { + l = m.Target.Size() n += 1 + l + sovPdpb(uint64(l)) } return n } -func sovPdpb(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +func (m *SplitRegion) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Policy != 0 { + n += 1 + sovPdpb(uint64(m.Policy)) + } + if len(m.Keys) > 0 { + for _, b := range m.Keys { + l = len(b) + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n } -func sozPdpb(x uint64) (n int) { - return sovPdpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func (m *SwitchWitness) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerId != 0 { + n += 1 + sovPdpb(uint64(m.PeerId)) + } + if m.IsWitness { + n += 2 + } + return n +} + +func (m *BatchSwitchWitness) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SwitchWitnesses) > 0 { + for _, e := range m.SwitchWitnesses { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *RegionHeartbeatResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.ChangePeer != nil { + l = m.ChangePeer.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.TransferLeader != nil { + l = m.TransferLeader.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RegionId != 0 { + n += 1 + sovPdpb(uint64(m.RegionId)) + } + if m.RegionEpoch != nil { + l = m.RegionEpoch.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.TargetPeer != nil { + l = m.TargetPeer.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Merge != nil { + l = m.Merge.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SplitRegion != nil { + l = m.SplitRegion.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.ChangePeerV2 != nil { + l = m.ChangePeerV2.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SwitchWitnesses != nil { + l = m.SwitchWitnesses.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *AskSplitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *AskSplitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.NewRegionId != 0 { + n += 1 + sovPdpb(uint64(m.NewRegionId)) + } + if len(m.NewPeerIds) > 0 { + l = 0 + for _, e := range m.NewPeerIds { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + return n +} + +func (m *ReportSplitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Left != nil { + l = m.Left.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Right != nil { + l = m.Right.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *ReportSplitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *AskBatchSplitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SplitCount != 0 { + n += 1 + sovPdpb(uint64(m.SplitCount)) + } + return n +} + +func (m *SplitID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NewRegionId != 0 { + n += 1 + sovPdpb(uint64(m.NewRegionId)) + } + if len(m.NewPeerIds) > 0 { + l = 0 + for _, e := range m.NewPeerIds { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + return n +} + +func (m *AskBatchSplitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.Ids) > 0 { + for _, e := range m.Ids { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *ReportBatchSplitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.Regions) > 0 { + for _, e := range m.Regions { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *ReportBatchSplitResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *TimeInterval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartTimestamp != 0 { + n += 1 + sovPdpb(uint64(m.StartTimestamp)) + } + if m.EndTimestamp != 0 { + n += 1 + sovPdpb(uint64(m.EndTimestamp)) + } + return n +} + +func (m *RecordPair) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Value != 0 { + n += 1 + sovPdpb(uint64(m.Value)) + } + return n +} + +func (m *PeerStat) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RegionId != 0 { + n += 1 + sovPdpb(uint64(m.RegionId)) + } + if m.ReadKeys != 0 { + n += 1 + sovPdpb(uint64(m.ReadKeys)) + } + if m.ReadBytes != 0 { + n += 1 + sovPdpb(uint64(m.ReadBytes)) + } + if m.QueryStats != nil { + l = m.QueryStats.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.WrittenKeys != 0 { + n += 1 + sovPdpb(uint64(m.WrittenKeys)) + } + if m.WrittenBytes != 0 { + n += 1 + sovPdpb(uint64(m.WrittenBytes)) + } + return n +} + +func (m *StoreStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StoreId != 0 { + n += 1 + sovPdpb(uint64(m.StoreId)) + } + if m.Capacity != 0 { + n += 1 + sovPdpb(uint64(m.Capacity)) + } + if m.Available != 0 { + n += 1 + sovPdpb(uint64(m.Available)) + } + if m.RegionCount != 0 { + n += 1 + sovPdpb(uint64(m.RegionCount)) + } + if m.SendingSnapCount != 0 { + n += 1 + sovPdpb(uint64(m.SendingSnapCount)) + } + if m.ReceivingSnapCount != 0 { + n += 1 + sovPdpb(uint64(m.ReceivingSnapCount)) + } + if m.StartTime != 0 { + n += 1 + sovPdpb(uint64(m.StartTime)) + } + if m.ApplyingSnapCount != 0 { + n += 1 + sovPdpb(uint64(m.ApplyingSnapCount)) + } + if m.IsBusy { + n += 2 + } + if m.UsedSize != 0 { + n += 1 + sovPdpb(uint64(m.UsedSize)) + } + if m.BytesWritten != 0 { + n += 1 + sovPdpb(uint64(m.BytesWritten)) + } + if m.KeysWritten != 0 { + n += 1 + sovPdpb(uint64(m.KeysWritten)) + } + if m.BytesRead != 0 { + n += 1 + sovPdpb(uint64(m.BytesRead)) + } + if m.KeysRead != 0 { + n += 1 + sovPdpb(uint64(m.KeysRead)) + } + if m.Interval != nil { + l = m.Interval.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.CpuUsages) > 0 { + for _, e := range m.CpuUsages { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + if len(m.ReadIoRates) > 0 { + for _, e := range m.ReadIoRates { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + if len(m.WriteIoRates) > 0 { + for _, e := range m.WriteIoRates { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + if len(m.OpLatencies) > 0 { + for _, e := range m.OpLatencies { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + if len(m.PeerStats) > 0 { + for _, e := range m.PeerStats { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + if m.QueryStats != nil { + l = m.QueryStats.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + if m.SlowScore != 0 { + n += 2 + sovPdpb(uint64(m.SlowScore)) + } + if len(m.DamagedRegionsId) > 0 { + l = 0 + for _, e := range m.DamagedRegionsId { + l += sovPdpb(uint64(e)) + } + n += 2 + sovPdpb(uint64(l)) + l + } + if m.IsApplyBusy { + n += 3 + } + if len(m.SnapshotStats) > 0 { + for _, e := range m.SnapshotStats { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + if m.SlowTrend != nil { + l = m.SlowTrend.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + if m.IsGrpcPaused { + n += 3 + } + if m.TotalMemory != 0 { + n += 2 + sovPdpb(uint64(m.TotalMemory)) + } + if m.UsedMemory != 0 { + n += 2 + sovPdpb(uint64(m.UsedMemory)) + } + return n +} + +func (m *SlowTrend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CauseValue != 0 { + n += 9 + } + if m.CauseRate != 0 { + n += 9 + } + if m.ResultValue != 0 { + n += 9 + } + if m.ResultRate != 0 { + n += 9 + } + return n +} + +func (m *SnapshotStat) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RegionId != 0 { + n += 1 + sovPdpb(uint64(m.RegionId)) + } + if m.GenerateDurationSec != 0 { + n += 1 + sovPdpb(uint64(m.GenerateDurationSec)) + } + if m.SendDurationSec != 0 { + n += 1 + sovPdpb(uint64(m.SendDurationSec)) + } + if m.TotalDurationSec != 0 { + n += 1 + sovPdpb(uint64(m.TotalDurationSec)) + } + if m.TransportSize != 0 { + n += 1 + sovPdpb(uint64(m.TransportSize)) + } + return n +} + +func (m *PeerReport) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RaftState != nil { + l = m.RaftState.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RegionState != nil { + l = m.RegionState.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.IsForceLeader { + n += 2 + } + if m.HasCommitMerge { + n += 2 + } + if m.AppliedIndex != 0 { + n += 1 + sovPdpb(uint64(m.AppliedIndex)) + } + return n +} + +func (m *StoreReport) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PeerReports) > 0 { + for _, e := range m.PeerReports { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.Step != 0 { + n += 1 + sovPdpb(uint64(m.Step)) + } + return n +} + +func (m *StoreHeartbeatRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.StoreReport != nil { + l = m.StoreReport.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.DrAutosyncStatus != nil { + l = m.DrAutosyncStatus.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *DemoteFailedVoters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RegionId != 0 { + n += 1 + sovPdpb(uint64(m.RegionId)) + } + if len(m.FailedVoters) > 0 { + for _, e := range m.FailedVoters { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *ForceLeader) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FailedStores) > 0 { + l = 0 + for _, e := range m.FailedStores { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + if len(m.EnterForceLeaders) > 0 { + l = 0 + for _, e := range m.EnterForceLeaders { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + return n +} + +func (m *RecoveryPlan) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Creates) > 0 { + for _, e := range m.Creates { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.Updates) > 0 { + for _, e := range m.Updates { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.Tombstones) > 0 { + l = 0 + for _, e := range m.Tombstones { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + if len(m.Demotes) > 0 { + for _, e := range m.Demotes { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.ForceLeader != nil { + l = m.ForceLeader.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Step != 0 { + n += 1 + sovPdpb(uint64(m.Step)) + } + return n +} + +func (m *AwakenRegions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AbnormalStores) > 0 { + l = 0 + for _, e := range m.AbnormalStores { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + return n +} + +func (m *ControlGrpc) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CtrlEvent != 0 { + n += 1 + sovPdpb(uint64(m.CtrlEvent)) + } + return n +} + +func (m *StoreHeartbeatResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.ClusterVersion) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RequireDetailedReport { + n += 2 + } + if m.RecoveryPlan != nil { + l = m.RecoveryPlan.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.AwakenRegions != nil { + l = m.AwakenRegions.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.ControlGrpc != nil { + l = m.ControlGrpc.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *ScatterRegionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RegionId != 0 { + n += 1 + sovPdpb(uint64(m.RegionId)) + } + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Leader != nil { + l = m.Leader.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.Group) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.RegionsId) > 0 { + l = 0 + for _, e := range m.RegionsId { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + if m.RetryLimit != 0 { + n += 1 + sovPdpb(uint64(m.RetryLimit)) + } + if m.SkipStoreLimit { + n += 2 + } + return n +} + +func (m *ScatterRegionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.FinishedPercentage != 0 { + n += 1 + sovPdpb(uint64(m.FinishedPercentage)) + } + return n +} + +func (m *GetGCSafePointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *GetGCSafePointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SafePoint != 0 { + n += 1 + sovPdpb(uint64(m.SafePoint)) + } + return n +} + +func (m *UpdateGCSafePointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Target != 0 { + n += 1 + sovPdpb(uint64(m.Target)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + return n +} + +func (m *UpdateGCSafePointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.NewGcSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.NewGcSafePoint)) + } + return n +} + +func (m *UpdateServiceGCSafePointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.ServiceId) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.TTL != 0 { + n += 1 + sovPdpb(uint64(m.TTL)) + } + if m.SafePoint != 0 { + n += 1 + sovPdpb(uint64(m.SafePoint)) + } + return n +} + +func (m *UpdateServiceGCSafePointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.ServiceId) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.TTL != 0 { + n += 1 + sovPdpb(uint64(m.TTL)) + } + if m.MinSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.MinSafePoint)) + } + return n +} + +func (m *GetGCSafePointV2Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + return n +} + +func (m *GetGCSafePointV2Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SafePoint != 0 { + n += 1 + sovPdpb(uint64(m.SafePoint)) + } + return n +} + +func (m *WatchGCSafePointV2Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) + } + return n +} + +func (m *SafePointEvent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + if m.SafePoint != 0 { + n += 1 + sovPdpb(uint64(m.SafePoint)) + } + if m.Type != 0 { + n += 1 + sovPdpb(uint64(m.Type)) + } + return n +} + +func (m *WatchGCSafePointV2Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.Events) > 0 { + for _, e := range m.Events { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) + } + return n +} + +func (m *UpdateGCSafePointV2Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + if m.SafePoint != 0 { + n += 1 + sovPdpb(uint64(m.SafePoint)) + } + return n +} + +func (m *UpdateGCSafePointV2Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.NewSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.NewSafePoint)) + } + return n +} + +func (m *UpdateServiceSafePointV2Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + l = len(m.ServiceId) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SafePoint != 0 { + n += 1 + sovPdpb(uint64(m.SafePoint)) + } + if m.Ttl != 0 { + n += 1 + sovPdpb(uint64(m.Ttl)) + } + return n +} + +func (m *UpdateServiceSafePointV2Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.ServiceId) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Ttl != 0 { + n += 1 + sovPdpb(uint64(m.Ttl)) + } + if m.MinSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.MinSafePoint)) + } + return n +} + +func (m *GetAllGCSafePointV2Request) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *GCSafePointV2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + if m.GcSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.GcSafePoint)) + } + return n +} + +func (m *GetAllGCSafePointV2Response) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.GcSafePoints) > 0 { + for _, e := range m.GcSafePoints { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.Revision != 0 { + n += 1 + sovPdpb(uint64(m.Revision)) + } + return n +} + +func (m *UpdateTxnSafePointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + if m.Target != 0 { + n += 1 + sovPdpb(uint64(m.Target)) + } + return n +} + +func (m *UpdateTxnSafePointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.NewTxnSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.NewTxnSafePoint)) + } + return n +} + +func (m *SetGCBarrierRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + l = len(m.BarrierId) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.BarrierTs != 0 { + n += 1 + sovPdpb(uint64(m.BarrierTs)) + } + if m.TtlSeconds != 0 { + n += 1 + sovPdpb(uint64(m.TtlSeconds)) + } + return n +} + +func (m *GCBarrierInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BarrierId) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.BarrierTs != 0 { + n += 1 + sovPdpb(uint64(m.BarrierTs)) + } + if m.TtlSeconds != 0 { + n += 1 + sovPdpb(uint64(m.TtlSeconds)) + } + return n +} + +func (m *SetGCBarrierResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.NewBarrierInfo != nil { + l = m.NewBarrierInfo.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *DeleteGCBarrierRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + l = len(m.BarrierId) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *DeleteGCBarrierResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.DeletedBarrierInfo != nil { + l = m.DeletedBarrierInfo.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *GetGCStateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + return n +} + +func (m *GetGCStateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.TxnSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.TxnSafePoint)) + } + if m.GcSafePoint != 0 { + n += 1 + sovPdpb(uint64(m.GcSafePoint)) + } + if len(m.GcBarriers) > 0 { + for _, e := range m.GcBarriers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *RegionStat) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BytesWritten != 0 { + n += 1 + sovPdpb(uint64(m.BytesWritten)) + } + if m.BytesRead != 0 { + n += 1 + sovPdpb(uint64(m.BytesRead)) + } + if m.KeysWritten != 0 { + n += 1 + sovPdpb(uint64(m.KeysWritten)) + } + if m.KeysRead != 0 { + n += 1 + sovPdpb(uint64(m.KeysRead)) + } + return n +} + +func (m *SyncRegionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Member != nil { + l = m.Member.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.StartIndex != 0 { + n += 1 + sovPdpb(uint64(m.StartIndex)) + } + return n +} + +func (m *PeersStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Peers) > 0 { + for _, e := range m.Peers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *Peers) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Peers) > 0 { + for _, e := range m.Peers { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *SyncRegionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.Regions) > 0 { + for _, e := range m.Regions { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.StartIndex != 0 { + n += 1 + sovPdpb(uint64(m.StartIndex)) + } + if len(m.RegionStats) > 0 { + for _, e := range m.RegionStats { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.RegionLeaders) > 0 { + for _, e := range m.RegionLeaders { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.Buckets) > 0 { + for _, e := range m.Buckets { + l = e.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + } + if len(m.DownPeers) > 0 { + for _, e := range m.DownPeers { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + if len(m.PendingPeers) > 0 { + for _, e := range m.PendingPeers { + l = e.Size() + n += 2 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *GetOperatorRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RegionId != 0 { + n += 1 + sovPdpb(uint64(m.RegionId)) + } + return n +} + +func (m *GetOperatorResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RegionId != 0 { + n += 1 + sovPdpb(uint64(m.RegionId)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovPdpb(uint64(m.Status)) + } + l = len(m.Kind) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *SyncMaxTSRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.MaxTs != nil { + l = m.MaxTs.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SkipCheck { + n += 2 + } + return n +} + +func (m *SyncMaxTSResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.MaxLocalTs != nil { + l = m.MaxLocalTs.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.SyncedDcs) > 0 { + for _, s := range m.SyncedDcs { + l = len(s) + n += 1 + l + sovPdpb(uint64(l)) + } + } + return n +} + +func (m *SplitRegionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.SplitKeys) > 0 { + for _, b := range m.SplitKeys { + l = len(b) + n += 1 + l + sovPdpb(uint64(l)) + } + } + if m.RetryLimit != 0 { + n += 1 + sovPdpb(uint64(m.RetryLimit)) + } + return n +} + +func (m *SplitRegionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.FinishedPercentage != 0 { + n += 1 + sovPdpb(uint64(m.FinishedPercentage)) + } + if len(m.RegionsId) > 0 { + l = 0 + for _, e := range m.RegionsId { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + return n +} + +func (m *SplitAndScatterRegionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if len(m.SplitKeys) > 0 { + for _, b := range m.SplitKeys { + l = len(b) + n += 1 + l + sovPdpb(uint64(l)) + } + } + l = len(m.Group) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RetryLimit != 0 { + n += 1 + sovPdpb(uint64(m.RetryLimit)) + } + return n +} + +func (m *SplitAndScatterRegionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.SplitFinishedPercentage != 0 { + n += 1 + sovPdpb(uint64(m.SplitFinishedPercentage)) + } + if m.ScatterFinishedPercentage != 0 { + n += 1 + sovPdpb(uint64(m.ScatterFinishedPercentage)) + } + if len(m.RegionsId) > 0 { + l = 0 + for _, e := range m.RegionsId { + l += sovPdpb(uint64(e)) + } + n += 1 + sovPdpb(uint64(l)) + l + } + return n +} + +func (m *GetDCLocationInfoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + l = len(m.DcLocation) + if l > 0 { + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *GetDCLocationInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Suffix != 0 { + n += 1 + sovPdpb(uint64(m.Suffix)) + } + if m.MaxTs != nil { + l = m.MaxTs.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *QueryStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GC != 0 { + n += 1 + sovPdpb(uint64(m.GC)) + } + if m.Get != 0 { + n += 1 + sovPdpb(uint64(m.Get)) + } + if m.Scan != 0 { + n += 1 + sovPdpb(uint64(m.Scan)) + } + if m.Coprocessor != 0 { + n += 1 + sovPdpb(uint64(m.Coprocessor)) + } + if m.Delete != 0 { + n += 1 + sovPdpb(uint64(m.Delete)) + } + if m.DeleteRange != 0 { + n += 1 + sovPdpb(uint64(m.DeleteRange)) + } + if m.Put != 0 { + n += 1 + sovPdpb(uint64(m.Put)) + } + if m.Prewrite != 0 { + n += 1 + sovPdpb(uint64(m.Prewrite)) + } + if m.AcquirePessimisticLock != 0 { + n += 1 + sovPdpb(uint64(m.AcquirePessimisticLock)) + } + if m.Commit != 0 { + n += 1 + sovPdpb(uint64(m.Commit)) + } + if m.Rollback != 0 { + n += 1 + sovPdpb(uint64(m.Rollback)) + } + return n +} + +func (m *ReportBucketsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.RegionEpoch != nil { + l = m.RegionEpoch.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Buckets != nil { + l = m.Buckets.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *ReportBucketsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *ReportMinResolvedTsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.StoreId != 0 { + n += 1 + sovPdpb(uint64(m.StoreId)) + } + if m.MinResolvedTs != 0 { + n += 1 + sovPdpb(uint64(m.MinResolvedTs)) + } + return n +} + +func (m *ReportMinResolvedTsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *SetExternalTimestampRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Timestamp != 0 { + n += 1 + sovPdpb(uint64(m.Timestamp)) + } + return n +} + +func (m *SetExternalTimestampResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *GetExternalTimestampRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *GetExternalTimestampResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Timestamp != 0 { + n += 1 + sovPdpb(uint64(m.Timestamp)) + } + return n +} + +func (m *GetMinTSRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func (m *GetMinTSResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + if m.Timestamp != nil { + l = m.Timestamp.Size() + n += 1 + l + sovPdpb(uint64(l)) + } + return n +} + +func sovPdpb(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPdpb(x uint64) (n int) { + return sovPdpb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchGlobalConfigRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchGlobalConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfigPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConfigPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + } + m.Revision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Revision |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchGlobalConfigResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchGlobalConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, &GlobalConfigItem{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + } + m.Revision = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Revision |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StoreGlobalConfigRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StoreGlobalConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Changes = append(m.Changes, &GlobalConfigItem{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfigPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConfigPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil } -func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { +func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19873,17 +21551,17 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WatchGlobalConfigRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StoreGlobalConfigResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WatchGlobalConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StoreGlobalConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigPath", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -19893,43 +21571,28 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.ConfigPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + if m.Error == nil { + m.Error = &Error{} } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -19951,7 +21614,7 @@ func (m *WatchGlobalConfigRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { +func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19974,17 +21637,17 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WatchGlobalConfigResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LoadGlobalConfigRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WatchGlobalConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LoadGlobalConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -19994,50 +21657,29 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Changes = append(m.Changes, &GlobalConfigItem{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ConfigPath", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20047,27 +21689,23 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ConfigPath = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20090,7 +21728,7 @@ func (m *WatchGlobalConfigResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { +func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20113,15 +21751,15 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StoreGlobalConfigRequest: wiretype end group for non-group") + return fmt.Errorf("proto: LoadGlobalConfigResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StoreGlobalConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LoadGlobalConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20148,16 +21786,16 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Changes = append(m.Changes, &GlobalConfigItem{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Items = append(m.Items, &GlobalConfigItem{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigPath", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) } - var stringLen uint64 + m.Revision = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20167,24 +21805,11 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConfigPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -20206,7 +21831,7 @@ func (m *StoreGlobalConfigRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { +func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20225,21 +21850,140 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { if b < 0x80 { break } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StoreGlobalConfigResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StoreGlobalConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GlobalConfigItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GlobalConfigItem: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Error == nil { + m.Error = &Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + m.Kind = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Kind |= EventType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20249,26 +21993,24 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Error == nil { - m.Error = &Error{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) + if m.Payload == nil { + m.Payload = []byte{} } iNdEx = postIndex default: @@ -20292,7 +22034,7 @@ func (m *StoreGlobalConfigResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { +func (m *RequestHeader) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20315,15 +22057,53 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LoadGlobalConfigRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RequestHeader: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LoadGlobalConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + m.ClusterId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClusterId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderId", wireType) + } + m.SenderId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SenderId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20351,11 +22131,11 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) + m.CallerId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigPath", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CallerComponent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20383,7 +22163,7 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ConfigPath = string(dAtA[iNdEx:postIndex]) + m.CallerComponent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20406,7 +22186,7 @@ func (m *LoadGlobalConfigRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { +func (m *ResponseHeader) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20429,15 +22209,34 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LoadGlobalConfigResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LoadGlobalConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + } + m.ClusterId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ClusterId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20464,30 +22263,13 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Items = append(m.Items, &GlobalConfigItem{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Error == nil { + m.Error = &Error{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -20509,7 +22291,7 @@ func (m *LoadGlobalConfigResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { +func (m *Error) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20532,17 +22314,17 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GlobalConfigItem: wiretype end group for non-group") + return fmt.Errorf("proto: Error: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GlobalConfigItem: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } - var stringLen uint64 + m.Type = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20552,27 +22334,14 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Type |= ErrorType(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20600,11 +22369,61 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Value = string(dAtA[iNdEx:postIndex]) + m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TsoRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TsoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TsoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20631,18 +22450,18 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Error == nil { - m.Error = &Error{} + if m.Header == nil { + m.Header = &RequestHeader{} } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } - m.Kind = 0 + m.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20652,16 +22471,16 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Kind |= EventType(b&0x7F) << shift + m.Count |= uint32(b&0x7F) << shift if b < 0x80 { break } } - case 5: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DcLocation", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20671,25 +22490,23 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } + m.DcLocation = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20712,7 +22529,7 @@ func (m *GlobalConfigItem) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestHeader) Unmarshal(dAtA []byte) error { +func (m *Timestamp) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20735,17 +22552,17 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestHeader: wiretype end group for non-group") + return fmt.Errorf("proto: Timestamp: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Timestamp: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType) } - m.ClusterId = 0 + m.Physical = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20755,16 +22572,16 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + m.Physical |= int64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SenderId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Logical", wireType) } - m.SenderId = 0 + m.Logical = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20774,48 +22591,16 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SenderId |= uint64(b&0x7F) << shift + m.Logical |= int64(b&0x7F) << shift if b < 0x80 { break } } case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallerComponent", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuffixBits", wireType) } - var stringLen uint64 + m.SuffixBits = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20825,24 +22610,11 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.SuffixBits |= uint32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallerComponent = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -20864,7 +22636,7 @@ func (m *RequestHeader) Unmarshal(dAtA []byte) error { } return nil } -func (m *ResponseHeader) Unmarshal(dAtA []byte) error { +func (m *TsoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20887,17 +22659,17 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") + return fmt.Errorf("proto: TsoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TsoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - m.ClusterId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -20907,14 +22679,50 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ClusterId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20941,10 +22749,10 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Error == nil { - m.Error = &Error{} + if m.Timestamp == nil { + m.Timestamp = &Timestamp{} } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -20969,7 +22777,7 @@ func (m *ResponseHeader) Unmarshal(dAtA []byte) error { } return nil } -func (m *Error) Unmarshal(dAtA []byte) error { +func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20992,17 +22800,17 @@ func (m *Error) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Error: wiretype end group for non-group") + return fmt.Errorf("proto: BootstrapRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BootstrapRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - m.Type = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21012,16 +22820,33 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= ErrorType(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Store", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21031,23 +22856,63 @@ func (m *Error) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Message = string(dAtA[iNdEx:postIndex]) + if m.Store == nil { + m.Store = &metapb.Store{} + } + if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Region == nil { + m.Region = &metapb.Region{} + } + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -21070,7 +22935,7 @@ func (m *Error) Unmarshal(dAtA []byte) error { } return nil } -func (m *TsoRequest) Unmarshal(dAtA []byte) error { +func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21093,10 +22958,10 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TsoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: BootstrapResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TsoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BootstrapResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21129,36 +22994,17 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &RequestHeader{} + m.Header = &ResponseHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DcLocation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21168,23 +23014,27 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.DcLocation = string(dAtA[iNdEx:postIndex]) + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.ReplicationStatus{} + } + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -21207,7 +23057,7 @@ func (m *TsoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *Timestamp) Unmarshal(dAtA []byte) error { +func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21230,17 +23080,17 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Timestamp: wiretype end group for non-group") + return fmt.Errorf("proto: IsBootstrappedRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Timestamp: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: IsBootstrappedRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - m.Physical = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21250,49 +23100,28 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Physical |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Logical", wireType) + if msglen < 0 { + return ErrInvalidLengthPdpb } - m.Logical = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Logical |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuffixBits", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - m.SuffixBits = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SuffixBits |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -21314,7 +23143,7 @@ func (m *Timestamp) Unmarshal(dAtA []byte) error { } return nil } -func (m *TsoResponse) Unmarshal(dAtA []byte) error { +func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21337,10 +23166,10 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: TsoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: IsBootstrappedResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: TsoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: IsBootstrappedResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21381,9 +23210,9 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Bootstrapped", wireType) } - m.Count = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21393,14 +23222,65 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint32(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: + m.Bootstrapped = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AllocIDRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AllocIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21427,10 +23307,10 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Timestamp == nil { - m.Timestamp = &Timestamp{} + if m.Header == nil { + m.Header = &RequestHeader{} } - if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -21455,7 +23335,7 @@ func (m *TsoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { +func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21478,10 +23358,10 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BootstrapRequest: wiretype end group for non-group") + return fmt.Errorf("proto: AllocIDResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BootstrapRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AllocIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21514,17 +23394,17 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &RequestHeader{} + m.Header = &ResponseHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Store", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - var msglen int + m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21534,31 +23414,64 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Id |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Store == nil { - m.Store = &metapb.Store{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 3: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IsSnapshotRecoveringRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IsSnapshotRecoveringRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21585,10 +23498,10 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Region == nil { - m.Region = &metapb.Region{} + if m.Header == nil { + m.Header = &RequestHeader{} } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -21613,7 +23526,7 @@ func (m *BootstrapRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { +func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21636,10 +23549,10 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BootstrapResponse: wiretype end group for non-group") + return fmt.Errorf("proto: IsSnapshotRecoveringResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BootstrapResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: IsSnapshotRecoveringResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21679,10 +23592,10 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Marked", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21692,28 +23605,12 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReplicationStatus == nil { - m.ReplicationStatus = &replication_modepb.ReplicationStatus{} - } - if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.Marked = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -21735,7 +23632,7 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { +func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21758,10 +23655,10 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: IsBootstrappedRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetStoreRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: IsBootstrappedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetStoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21800,6 +23697,25 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + m.StoreId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StoreId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -21821,7 +23737,7 @@ func (m *IsBootstrappedRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { +func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21844,10 +23760,10 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: IsBootstrappedResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetStoreResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: IsBootstrappedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetStoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21887,10 +23803,10 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Bootstrapped", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Store", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -21900,65 +23816,31 @@ func (m *IsBootstrappedResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.Bootstrapped = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthPdpb } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.Store == nil { + m.Store = &metapb.Store{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AllocIDRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllocIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21985,10 +23867,10 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} + if m.Stats == nil { + m.Stats = &StoreStats{} } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -22013,7 +23895,7 @@ func (m *AllocIDRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { +func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22036,10 +23918,10 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AllocIDResponse: wiretype end group for non-group") + return fmt.Errorf("proto: PutStoreRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AllocIDResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PutStoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22072,17 +23954,17 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Store", wireType) } - m.Id = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -22092,11 +23974,28 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Store == nil { + m.Store = &metapb.Store{} + } + if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -22118,7 +24017,7 @@ func (m *AllocIDResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { +func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22141,10 +24040,10 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: IsSnapshotRecoveringRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PutStoreResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: IsSnapshotRecoveringRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PutStoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22177,12 +24076,48 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &RequestHeader{} + m.Header = &ResponseHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.ReplicationStatus{} + } + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -22204,7 +24139,7 @@ func (m *IsSnapshotRecoveringRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { +func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22227,10 +24162,10 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: IsSnapshotRecoveringResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetAllStoresRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: IsSnapshotRecoveringResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAllStoresRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22263,7 +24198,7 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -22271,7 +24206,7 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Marked", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTombstoneStores", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -22288,7 +24223,7 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { break } } - m.Marked = bool(v != 0) + m.ExcludeTombstoneStores = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -22310,7 +24245,7 @@ func (m *IsSnapshotRecoveringResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { +func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22333,10 +24268,10 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetStoreRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetAllStoresResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetStoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAllStoresResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22369,17 +24304,17 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &RequestHeader{} + m.Header = &ResponseHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stores", wireType) } - m.StoreId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -22389,11 +24324,26 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stores = append(m.Stores, &metapb.Store{}) + if err := m.Stores[len(m.Stores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -22415,7 +24365,7 @@ func (m *GetStoreRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { +func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22438,10 +24388,10 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetStoreResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetRegionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetStoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22474,7 +24424,7 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -22482,9 +24432,9 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Store", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -22494,33 +24444,31 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Store == nil { - m.Store = &metapb.Store{} - } - if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.RegionKey = append(m.RegionKey[:0], dAtA[iNdEx:postIndex]...) + if m.RegionKey == nil { + m.RegionKey = []byte{} } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NeedBuckets", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -22530,28 +24478,12 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Stats == nil { - m.Stats = &StoreStats{} - } - if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.NeedBuckets = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -22573,7 +24505,7 @@ func (m *GetStoreResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { +func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22596,10 +24528,10 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PutStoreRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetRegionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PutStoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22632,7 +24564,7 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &RequestHeader{} + m.Header = &ResponseHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -22640,7 +24572,7 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Store", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22667,66 +24599,86 @@ func (m *PutStoreRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Store == nil { - m.Store = &metapb.Store{} + if m.Region == nil { + m.Region = &metapb.Region{} } - if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + if m.Leader == nil { + m.Leader = &metapb.Peer{} } - if iNdEx >= l { + if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DownPeers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.DownPeers = append(m.DownPeers, &PeerStats{}) + if err := m.DownPeers[len(m.DownPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PutStoreResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PutStoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PendingPeers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22753,16 +24705,14 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PendingPeers = append(m.PendingPeers, &metapb.Peer{}) + if err := m.PendingPeers[len(m.PendingPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Buckets", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22789,10 +24739,10 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReplicationStatus == nil { - m.ReplicationStatus = &replication_modepb.ReplicationStatus{} + if m.Buckets == nil { + m.Buckets = &metapb.Buckets{} } - if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Buckets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -22817,7 +24767,7 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { +func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22840,10 +24790,10 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAllStoresRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetRegionByIDRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAllStoresRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRegionByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22884,7 +24834,26 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeTombstoneStores", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) + } + m.RegionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RegionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NeedBuckets", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -22901,7 +24870,7 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { break } } - m.ExcludeTombstoneStores = bool(v != 0) + m.NeedBuckets = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -22923,7 +24892,7 @@ func (m *GetAllStoresRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { +func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22946,10 +24915,10 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAllStoresResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ScanRegionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAllStoresResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ScanRegionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22982,7 +24951,7 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -22990,9 +24959,9 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stores", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -23002,24 +24971,77 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) + if m.StartKey == nil { + m.StartKey = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndKey", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Stores = append(m.Stores, &metapb.Store{}) - if err := m.Stores[len(m.Stores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) + if m.EndKey == nil { + m.EndKey = []byte{} } iNdEx = postIndex default: @@ -23043,7 +25065,7 @@ func (m *GetAllStoresResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { +func (m *Region) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23066,15 +25088,15 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRegionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Region: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Region: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23101,18 +25123,18 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} + if m.Region == nil { + m.Region = &metapb.Region{} } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -23122,31 +25144,33 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.RegionKey = append(m.RegionKey[:0], dAtA[iNdEx:postIndex]...) - if m.RegionKey == nil { - m.RegionKey = []byte{} + if m.Leader == nil { + m.Leader = &metapb.Peer{} + } + if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NeedBuckets", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DownPeers", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -23156,65 +25180,29 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.NeedBuckets = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.DownPeers = append(m.DownPeers, &PeerStats{}) + if err := m.DownPeers[len(m.DownPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetRegionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PendingPeers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23241,16 +25229,14 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PendingPeers = append(m.PendingPeers, &metapb.Peer{}) + if err := m.PendingPeers[len(m.PendingPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Buckets", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23277,16 +25263,66 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Region == nil { - m.Region = &metapb.Region{} + if m.Buckets == nil { + m.Buckets = &metapb.Buckets{} } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Buckets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ScanRegionsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ScanRegionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23313,16 +25349,16 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Leader == nil { - m.Leader = &metapb.Peer{} + if m.Header == nil { + m.Header = &ResponseHeader{} } - if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DownPeers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionMetas", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23349,14 +25385,14 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DownPeers = append(m.DownPeers, &PeerStats{}) - if err := m.DownPeers[len(m.DownPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.RegionMetas = append(m.RegionMetas, &metapb.Region{}) + if err := m.RegionMetas[len(m.RegionMetas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingPeers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Leaders", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23383,14 +25419,14 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PendingPeers = append(m.PendingPeers, &metapb.Peer{}) - if err := m.PendingPeers[len(m.PendingPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Leaders = append(m.Leaders, &metapb.Peer{}) + if err := m.Leaders[len(m.Leaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Buckets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23417,10 +25453,8 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Buckets == nil { - m.Buckets = &metapb.Buckets{} - } - if err := m.Buckets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Regions = append(m.Regions, &Region{}) + if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -23445,7 +25479,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { +func (m *KeyRange) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23468,17 +25502,17 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRegionByIDRequest: wiretype end group for non-group") + return fmt.Errorf("proto: KeyRange: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: KeyRange: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -23488,33 +25522,31 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) + if m.StartKey == nil { + m.StartKey = []byte{} } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndKey", wireType) } - m.RegionId = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -23524,31 +25556,26 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NeedBuckets", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if byteLen < 0 { + return ErrInvalidLengthPdpb } - m.NeedBuckets = bool(v != 0) + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) + if m.EndKey == nil { + m.EndKey = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -23570,7 +25597,7 @@ func (m *GetRegionByIDRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { +func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23593,10 +25620,10 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ScanRegionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: BatchScanRegionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ScanRegionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchScanRegionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -23636,10 +25663,30 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NeedBuckets", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NeedBuckets = bool(v != 0) + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -23649,27 +25696,27 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) - if m.StartKey == nil { - m.StartKey = []byte{} + m.Ranges = append(m.Ranges, &KeyRange{}) + if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 3: + case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } @@ -23688,11 +25735,11 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { break } } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndKey", wireType) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainAllKeyRange", wireType) } - var byteLen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -23702,26 +25749,12 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) - if m.EndKey == nil { - m.EndKey = []byte{} - } - iNdEx = postIndex + m.ContainAllKeyRange = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -23743,7 +25776,7 @@ func (m *ScanRegionsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *Region) Unmarshal(dAtA []byte) error { +func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23766,15 +25799,15 @@ func (m *Region) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Region: wiretype end group for non-group") + return fmt.Errorf("proto: BatchScanRegionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Region: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchScanRegionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23801,16 +25834,16 @@ func (m *Region) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Region == nil { - m.Region = &metapb.Region{} + if m.Header == nil { + m.Header = &ResponseHeader{} } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23837,84 +25870,64 @@ func (m *Region) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Leader == nil { - m.Leader = &metapb.Peer{} - } - if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Regions = append(m.Regions, &Region{}) + if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DownPeers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.DownPeers = append(m.DownPeers, &PeerStats{}) - if err := m.DownPeers[len(m.DownPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingPeers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.PendingPeers = append(m.PendingPeers, &metapb.Peer{}) - if err := m.PendingPeers[len(m.PendingPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 5: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetClusterConfigRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetClusterConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Buckets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23941,10 +25954,10 @@ func (m *Region) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Buckets == nil { - m.Buckets = &metapb.Buckets{} + if m.Header == nil { + m.Header = &RequestHeader{} } - if err := m.Buckets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -23969,7 +25982,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { } return nil } -func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { +func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -23992,10 +26005,10 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ScanRegionsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetClusterConfigResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ScanRegionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetClusterConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24036,7 +26049,7 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionMetas", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24060,17 +26073,69 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { if postIndex < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cluster == nil { + m.Cluster = &metapb.Cluster{} + } + if err := m.Cluster.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.RegionMetas = append(m.RegionMetas, &metapb.Region{}) - if err := m.RegionMetas[len(m.RegionMetas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 3: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PutClusterConfigRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PutClusterConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Leaders", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24097,14 +26162,16 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Leaders = append(m.Leaders, &metapb.Peer{}) - if err := m.Leaders[len(m.Leaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24131,8 +26198,10 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Regions = append(m.Regions, &Region{}) - if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Cluster == nil { + m.Cluster = &metapb.Cluster{} + } + if err := m.Cluster.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -24157,7 +26226,7 @@ func (m *ScanRegionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *KeyRange) Unmarshal(dAtA []byte) error { +func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24180,17 +26249,17 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: KeyRange: wiretype end group for non-group") + return fmt.Errorf("proto: PutClusterConfigResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: KeyRange: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PutClusterConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24200,58 +26269,26 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.StartKey = append(m.StartKey[:0], dAtA[iNdEx:postIndex]...) - if m.StartKey == nil { - m.StartKey = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.Header == nil { + m.Header = &ResponseHeader{} } - m.EndKey = append(m.EndKey[:0], dAtA[iNdEx:postIndex]...) - if m.EndKey == nil { - m.EndKey = []byte{} + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -24275,7 +26312,7 @@ func (m *KeyRange) Unmarshal(dAtA []byte) error { } return nil } -func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { +func (m *Member) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24298,17 +26335,17 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchScanRegionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: Member: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchScanRegionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24318,33 +26355,29 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NeedBuckets", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType) } - var v int + m.MemberId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24354,17 +26387,16 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.MemberId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.NeedBuckets = bool(v != 0) case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PeerUrls", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24374,31 +26406,29 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Ranges = append(m.Ranges, &KeyRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.PeerUrls = append(m.PeerUrls, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientUrls", wireType) } - m.Limit = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24408,16 +26438,29 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClientUrls = append(m.ClientUrls, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainAllKeyRange", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LeaderPriority", wireType) } - var v int + m.LeaderPriority = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24427,67 +26470,80 @@ func (m *BatchScanRegionsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.LeaderPriority |= int32(b&0x7F) << shift if b < 0x80 { break } } - m.ContainAllKeyRange = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeployPath", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + m.DeployPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BinaryVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb } - if iNdEx >= l { - return io.ErrUnexpectedEOF + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if postIndex > l { + return io.ErrUnexpectedEOF } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BatchScanRegionsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BatchScanRegionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.BinaryVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GitHash", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24497,33 +26553,29 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.GitHash = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DcLocation", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -24533,25 +26585,23 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Regions = append(m.Regions, &Region{}) - if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.DcLocation = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -24574,7 +26624,7 @@ func (m *BatchScanRegionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { +func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24597,10 +26647,10 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetClusterConfigRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetMembersRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetClusterConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24660,7 +26710,7 @@ func (m *GetClusterConfigRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { +func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24683,10 +26733,10 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetClusterConfigResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetMembersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetClusterConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24727,7 +26777,7 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24754,66 +26804,50 @@ func (m *GetClusterConfigResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &metapb.Cluster{} - } - if err := m.Cluster.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Members = append(m.Members, &Member{}) + if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return ErrInvalidLengthPdpb } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Leader == nil { + m.Leader = &Member{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PutClusterConfigRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PutClusterConfigRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EtcdLeader", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24840,16 +26874,16 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} + if m.EtcdLeader == nil { + m.EtcdLeader = &Member{} } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.EtcdLeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cluster", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TsoAllocatorLeaders", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24876,12 +26910,105 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Cluster == nil { - m.Cluster = &metapb.Cluster{} + if m.TsoAllocatorLeaders == nil { + m.TsoAllocatorLeaders = make(map[string]*Member) } - if err := m.Cluster.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue *Member + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthPdpb + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthPdpb + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthPdpb + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthPdpb + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Member{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.TsoAllocatorLeaders[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -24904,7 +27031,7 @@ func (m *PutClusterConfigRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { +func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -24927,10 +27054,10 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PutClusterConfigResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetClusterInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PutClusterConfigResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetClusterInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24990,7 +27117,7 @@ func (m *PutClusterConfigResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *Member) Unmarshal(dAtA []byte) error { +func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25013,100 +27140,17 @@ func (m *Member) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Member: wiretype end group for non-group") + return fmt.Errorf("proto: GetClusterInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetClusterInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType) - } - m.MemberId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MemberId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerUrls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeerUrls = append(m.PeerUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientUrls", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -25116,142 +27160,100 @@ func (m *Member) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.ClientUrls = append(m.ClientUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaderPriority", wireType) - } - m.LeaderPriority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LeaderPriority |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeployPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb + if m.Header == nil { + m.Header = &ResponseHeader{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.DeployPath = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + case 2: + if wireType == 0 { + var v ServiceMode + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= ServiceMode(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + m.ServiceModes = append(m.ServiceModes, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if packedLen < 0 { + return ErrInvalidLengthPdpb } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BinaryVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var elementCount int + if elementCount != 0 && len(m.ServiceModes) == 0 { + m.ServiceModes = make([]ServiceMode, 0, elementCount) } + for iNdEx < postIndex { + var v ServiceMode + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= ServiceMode(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServiceModes = append(m.ServiceModes, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceModes", wireType) } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GitHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DcLocation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TsoUrls", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25279,7 +27281,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DcLocation = string(dAtA[iNdEx:postIndex]) + m.TsoUrls = append(m.TsoUrls, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -25302,7 +27304,7 @@ func (m *Member) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { +func (m *PeerStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25325,15 +27327,15 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetMembersRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PeerStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PeerStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Peer", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25360,13 +27362,32 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} + if m.Peer == nil { + m.Peer = &metapb.Peer{} } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Peer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DownSeconds", wireType) + } + m.DownSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.DownSeconds |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -25388,7 +27409,7 @@ func (m *GetMembersRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { +func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -25411,10 +27432,10 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetMembersResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RegionHeartbeatRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RegionHeartbeatRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -25447,7 +27468,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -25455,7 +27476,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25482,8 +27503,10 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Members = append(m.Members, &Member{}) - if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Region == nil { + m.Region = &metapb.Region{} + } + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -25517,7 +27540,7 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Leader == nil { - m.Leader = &Member{} + m.Leader = &metapb.Peer{} } if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -25525,7 +27548,170 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EtcdLeader", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DownPeers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DownPeers = append(m.DownPeers, &PeerStats{}) + if err := m.DownPeers[len(m.DownPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingPeers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PendingPeers = append(m.PendingPeers, &metapb.Peer{}) + if err := m.PendingPeers[len(m.PendingPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesWritten", wireType) + } + m.BytesWritten = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BytesWritten |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesRead", wireType) + } + m.BytesRead = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BytesRead |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeysWritten", wireType) + } + m.KeysWritten = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeysWritten |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeysRead", wireType) + } + m.KeysRead = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeysRead |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproximateSize", wireType) + } + m.ApproximateSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproximateSize |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25552,18 +27738,18 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.EtcdLeader == nil { - m.EtcdLeader = &Member{} + if m.Interval == nil { + m.Interval = &TimeInterval{} } - if err := m.EtcdLeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TsoAllocatorLeaders", wireType) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproximateKeys", wireType) } - var msglen int + m.ApproximateKeys = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -25573,176 +27759,16 @@ func (m *GetMembersResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.ApproximateKeys |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TsoAllocatorLeaders == nil { - m.TsoAllocatorLeaders = make(map[string]*Member) - } - var mapkey string - var mapvalue *Member - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthPdpb - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthPdpb - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthPdpb - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthPdpb - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &Member{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.TsoAllocatorLeaders[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetClusterInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetClusterInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) } - var msglen int + m.Term = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -25752,81 +27778,14 @@ func (m *GetClusterInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Term |= uint64(b&0x7F) << shift if b < 0x80 { break - } - } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetClusterInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetClusterInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + } + } + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -25853,87 +27812,18 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &ResponseHeader{} + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.RegionReplicationStatus{} } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType == 0 { - var v ServiceMode - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ServiceMode(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ServiceModes = append(m.ServiceModes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.ServiceModes) == 0 { - m.ServiceModes = make([]ServiceMode, 0, elementCount) - } - for iNdEx < postIndex { - var v ServiceMode - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ServiceMode(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ServiceModes = append(m.ServiceModes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceModes", wireType) - } - case 3: + case 16: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TsoUrls", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -25943,24 +27833,66 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.TsoUrls = append(m.TsoUrls, string(dAtA[iNdEx:postIndex])) + if m.QueryStats == nil { + m.QueryStats = &QueryStats{} + } + if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsage", wireType) + } + m.CpuUsage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CpuUsage |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproximateKvSize", wireType) + } + m.ApproximateKvSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ApproximateKvSize |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -25982,7 +27914,7 @@ func (m *GetClusterInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *PeerStats) Unmarshal(dAtA []byte) error { +func (m *ChangePeer) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26005,10 +27937,10 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PeerStats: wiretype end group for non-group") + return fmt.Errorf("proto: ChangePeer: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PeerStats: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangePeer: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -26049,9 +27981,9 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DownSeconds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType) } - m.DownSeconds = 0 + m.ChangeType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -26061,7 +27993,7 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DownSeconds |= uint64(b&0x7F) << shift + m.ChangeType |= eraftpb.ConfChangeType(b&0x7F) << shift if b < 0x80 { break } @@ -26087,7 +28019,7 @@ func (m *PeerStats) Unmarshal(dAtA []byte) error { } return nil } -func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { +func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26110,15 +28042,15 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RegionHeartbeatRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ChangePeerV2: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RegionHeartbeatRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChangePeerV2: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26145,88 +28077,64 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Changes = append(m.Changes, &ChangePeer{}) + if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Region == nil { - m.Region = &metapb.Region{} - } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TransferLeader) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.Leader == nil { - m.Leader = &metapb.Peer{} - } - if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 4: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TransferLeader: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TransferLeader: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DownPeers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Peer", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26253,14 +28161,16 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DownPeers = append(m.DownPeers, &PeerStats{}) - if err := m.DownPeers[len(m.DownPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Peer == nil { + m.Peer = &metapb.Peer{} + } + if err := m.Peer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PendingPeers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Peers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26287,109 +28197,64 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PendingPeers = append(m.PendingPeers, &metapb.Peer{}) - if err := m.PendingPeers[len(m.PendingPeers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Peers = append(m.Peers, &metapb.Peer{}) + if err := m.Peers[len(m.Peers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesWritten", wireType) - } - m.BytesWritten = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BytesWritten |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesRead", wireType) - } - m.BytesRead = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BytesRead |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeysWritten", wireType) + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - m.KeysWritten = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.KeysWritten |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeysRead", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - m.KeysRead = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.KeysRead |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Merge) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproximateSize", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.ApproximateSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ApproximateSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 12: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Merge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Merge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26416,56 +28281,68 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Interval == nil { - m.Interval = &TimeInterval{} + if m.Target == nil { + m.Target = &metapb.Region{} } - if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproximateKeys", wireType) + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - m.ApproximateKeys = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ApproximateKeys |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - m.Term = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Term |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SplitRegion) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SplitRegion: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitRegion: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) } - var msglen int + m.Policy = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -26475,33 +28352,16 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Policy |= CheckPolicy(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReplicationStatus == nil { - m.ReplicationStatus = &replication_modepb.RegionReplicationStatus{} - } - if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -26511,33 +28371,79 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.QueryStats == nil { - m.QueryStats = &QueryStats{} - } - if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx)) + copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 17: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwitchWitness) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SwitchWitness: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SwitchWitness: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuUsage", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PeerId", wireType) } - m.CpuUsage = 0 + m.PeerId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -26547,16 +28453,16 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CpuUsage |= uint64(b&0x7F) << shift + m.PeerId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 18: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApproximateKvSize", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsWitness", wireType) } - m.ApproximateKvSize = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -26566,11 +28472,12 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApproximateKvSize |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } + m.IsWitness = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -26592,7 +28499,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ChangePeer) Unmarshal(dAtA []byte) error { +func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26615,15 +28522,15 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangePeer: wiretype end group for non-group") + return fmt.Errorf("proto: BatchSwitchWitness: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangePeer: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchSwitchWitness: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Peer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwitchWitnesses", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26650,32 +28557,11 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Peer == nil { - m.Peer = &metapb.Peer{} - } - if err := m.Peer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.SwitchWitnesses = append(m.SwitchWitnesses, &SwitchWitness{}) + if err := m.SwitchWitnesses[len(m.SwitchWitnesses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChangeType", wireType) - } - m.ChangeType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ChangeType |= eraftpb.ConfChangeType(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -26697,7 +28583,7 @@ func (m *ChangePeer) Unmarshal(dAtA []byte) error { } return nil } -func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { +func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -26720,15 +28606,15 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChangePeerV2: wiretype end group for non-group") + return fmt.Errorf("proto: RegionHeartbeatResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChangePeerV2: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RegionHeartbeatResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26755,64 +28641,107 @@ func (m *ChangePeerV2) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Changes = append(m.Changes, &ChangePeer{}) - if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChangePeer", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TransferLeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + if m.ChangePeer == nil { + m.ChangePeer = &ChangePeer{} } - if iNdEx >= l { + if err := m.ChangePeer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferLeader", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.TransferLeader == nil { + m.TransferLeader = &TransferLeader{} + } + if err := m.TransferLeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) + } + m.RegionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RegionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TransferLeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TransferLeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Peer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionEpoch", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26839,16 +28768,16 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Peer == nil { - m.Peer = &metapb.Peer{} + if m.RegionEpoch == nil { + m.RegionEpoch = &metapb.RegionEpoch{} } - if err := m.Peer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RegionEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Peers", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetPeer", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26875,64 +28804,16 @@ func (m *TransferLeader) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Peers = append(m.Peers, &metapb.Peer{}) - if err := m.Peers[len(m.Peers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if m.TargetPeer == nil { + m.TargetPeer = &metapb.Peer{} } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { + if err := m.TargetPeer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Merge) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Merge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Merge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Merge", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -26959,68 +28840,54 @@ func (m *Merge) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Target == nil { - m.Target = &metapb.Region{} + if m.Merge == nil { + m.Merge = &Merge{} } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Merge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitRegion", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + if msglen < 0 { + return ErrInvalidLengthPdpb } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SplitRegion) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.SplitRegion == nil { + m.SplitRegion = &SplitRegion{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SplitRegion: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitRegion: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) + if err := m.SplitRegion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Policy = 0 + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChangePeerV2", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27030,16 +28897,33 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Policy |= CheckPolicy(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ChangePeerV2 == nil { + m.ChangePeerV2 = &ChangePeerV2{} + } + if err := m.ChangePeerV2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwitchWitnesses", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27049,23 +28933,27 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx)) - copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex]) + if m.SwitchWitnesses == nil { + m.SwitchWitnesses = &BatchSwitchWitness{} + } + if err := m.SwitchWitnesses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -27088,7 +28976,7 @@ func (m *SplitRegion) Unmarshal(dAtA []byte) error { } return nil } -func (m *SwitchWitness) Unmarshal(dAtA []byte) error { +func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27111,17 +28999,17 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SwitchWitness: wiretype end group for non-group") + return fmt.Errorf("proto: AskSplitRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SwitchWitness: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AskSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - m.PeerId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27131,16 +29019,33 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PeerId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsWitness", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27150,12 +29055,28 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsWitness = bool(v != 0) + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Region == nil { + m.Region = &metapb.Region{} + } + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -27177,7 +29098,7 @@ func (m *SwitchWitness) Unmarshal(dAtA []byte) error { } return nil } -func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { +func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27200,15 +29121,15 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchSwitchWitness: wiretype end group for non-group") + return fmt.Errorf("proto: AskSplitResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchSwitchWitness: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AskSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwitchWitnesses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27235,11 +29156,108 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SwitchWitnesses = append(m.SwitchWitnesses, &SwitchWitness{}) - if err := m.SwitchWitnesses[len(m.SwitchWitnesses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewRegionId", wireType) + } + m.NewRegionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NewRegionId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NewPeerIds = append(m.NewPeerIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.NewPeerIds) == 0 { + m.NewPeerIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NewPeerIds = append(m.NewPeerIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field NewPeerIds", wireType) + } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -27261,7 +29279,7 @@ func (m *BatchSwitchWitness) Unmarshal(dAtA []byte) error { } return nil } -func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { +func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27284,10 +29302,10 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RegionHeartbeatResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReportSplitRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RegionHeartbeatResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReportSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -27320,7 +29338,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -27328,7 +29346,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChangePeer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Left", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27355,16 +29373,16 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ChangePeer == nil { - m.ChangePeer = &ChangePeer{} + if m.Left == nil { + m.Left = &metapb.Region{} } - if err := m.ChangePeer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Left.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TransferLeader", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Right", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27391,18 +29409,68 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TransferLeader == nil { - m.TransferLeader = &TransferLeader{} + if m.Right == nil { + m.Right = &metapb.Region{} } - if err := m.TransferLeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Right.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - m.RegionId = 0 + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReportSplitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27412,14 +29480,81 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 5: + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AskBatchSplitRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AskBatchSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionEpoch", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27446,16 +29581,16 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RegionEpoch == nil { - m.RegionEpoch = &metapb.RegionEpoch{} + if m.Header == nil { + m.Header = &RequestHeader{} } - if err := m.RegionEpoch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPeer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27482,18 +29617,18 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TargetPeer == nil { - m.TargetPeer = &metapb.Peer{} + if m.Region == nil { + m.Region = &metapb.Region{} } - if err := m.TargetPeer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Merge", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SplitCount", wireType) } - var msglen int + m.SplitCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27503,33 +29638,66 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.SplitCount |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Merge == nil { - m.Merge = &Merge{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SplitID) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if err := m.Merge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitRegion", wireType) + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - var msglen int + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SplitID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SplitID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewRegionId", wireType) + } + m.NewRegionId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27539,31 +29707,140 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.NewRegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NewPeerIds = append(m.NewPeerIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.NewPeerIds) == 0 { + m.NewPeerIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NewPeerIds = append(m.NewPeerIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field NewPeerIds", wireType) } - postIndex := iNdEx + msglen - if postIndex < 0 { + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.SplitRegion == nil { - m.SplitRegion = &SplitRegion{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if err := m.SplitRegion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 9: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AskBatchSplitResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AskBatchSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChangePeerV2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27590,16 +29867,16 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ChangePeerV2 == nil { - m.ChangePeerV2 = &ChangePeerV2{} + if m.Header == nil { + m.Header = &ResponseHeader{} } - if err := m.ChangePeerV2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 10: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SwitchWitnesses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27626,10 +29903,8 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SwitchWitnesses == nil { - m.SwitchWitnesses = &BatchSwitchWitness{} - } - if err := m.SwitchWitnesses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Ids = append(m.Ids, &SplitID{}) + if err := m.Ids[len(m.Ids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -27654,7 +29929,7 @@ func (m *RegionHeartbeatResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { +func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27677,10 +29952,10 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AskSplitRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ReportBatchSplitRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AskSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReportBatchSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -27721,7 +29996,7 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -27748,10 +30023,8 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Region == nil { - m.Region = &metapb.Region{} - } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Regions = append(m.Regions, &metapb.Region{}) + if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -27776,7 +30049,7 @@ func (m *AskSplitRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { +func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27799,10 +30072,10 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AskSplitResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ReportBatchSplitResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AskSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ReportBatchSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -27841,11 +30114,61 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TimeInterval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TimeInterval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TimeInterval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NewRegionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartTimestamp", wireType) } - m.NewRegionId = 0 + m.StartTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -27855,86 +30178,130 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewRegionId |= uint64(b&0x7F) << shift + m.StartTimestamp |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EndTimestamp", wireType) + } + m.EndTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - m.NewPeerIds = append(m.NewPeerIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if packedLen < 0 { - return ErrInvalidLengthPdpb + b := dAtA[iNdEx] + iNdEx++ + m.EndTimestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb + } + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecordPair) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RecordPair: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecordPair: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.NewPeerIds) == 0 { - m.NewPeerIds = make([]uint64, 0, elementCount) + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NewPeerIds = append(m.NewPeerIds, v) + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field NewPeerIds", wireType) } default: iNdEx = preIndex @@ -27957,7 +30324,7 @@ func (m *AskSplitResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { +func (m *PeerStat) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27980,17 +30347,17 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReportSplitRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PeerStat: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReportSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PeerStat: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) } - var msglen int + m.RegionId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28000,31 +30367,52 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadKeys", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.ReadKeys = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReadKeys |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if m.Header == nil { - m.Header = &RequestHeader{} + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadBytes", wireType) } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ReadBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReadBytes |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Left", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28051,18 +30439,18 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Left == nil { - m.Left = &metapb.Region{} + if m.QueryStats == nil { + m.QueryStats = &QueryStats{} } - if err := m.Left.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Right", wireType) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WrittenKeys", wireType) } - var msglen int + m.WrittenKeys = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28072,28 +30460,30 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.WrittenKeys |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Right == nil { - m.Right = &metapb.Region{} + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WrittenBytes", wireType) } - if err := m.Right.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.WrittenBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WrittenBytes |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -28115,7 +30505,7 @@ func (m *ReportSplitRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { +func (m *StoreStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28138,17 +30528,17 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReportSplitResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StoreStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReportSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StoreStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) } - var msglen int + m.StoreId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28158,83 +30548,73 @@ func (m *ReportSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.StoreId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb + m.Capacity = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Capacity |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Available", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + m.Available = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Available |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionCount", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.RegionCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RegionCount |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AskBatchSplitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AskBatchSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SendingSnapCount", wireType) } - var msglen int + m.SendingSnapCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28244,33 +30624,16 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.SendingSnapCount |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &RequestHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivingSnapCount", wireType) } - var msglen int + m.ReceivingSnapCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28280,33 +30643,16 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.ReceivingSnapCount |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Region == nil { - m.Region = &metapb.Region{} - } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: + case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SplitCount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) } - m.SplitCount = 0 + m.StartTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28316,66 +30662,16 @@ func (m *AskBatchSplitRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SplitCount |= uint32(b&0x7F) << shift + m.StartTime |= uint32(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SplitID) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SplitID: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SplitID: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 8: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NewRegionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApplyingSnapCount", wireType) } - m.NewRegionId = 0 + m.ApplyingSnapCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28385,142 +30681,36 @@ func (m *SplitID) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewRegionId |= uint64(b&0x7F) << shift + m.ApplyingSnapCount |= uint32(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NewPeerIds = append(m.NewPeerIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsBusy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.NewPeerIds) == 0 { - m.NewPeerIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NewPeerIds = append(m.NewPeerIds, v) + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field NewPeerIds", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AskBatchSplitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AskBatchSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + m.IsBusy = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsedSize", wireType) } - var msglen int + m.UsedSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28530,33 +30720,16 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.UsedSize |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesWritten", wireType) } - var msglen int + m.BytesWritten = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28566,79 +30739,71 @@ func (m *AskBatchSplitResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.BytesWritten |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ids = append(m.Ids, &SplitID{}) - if err := m.Ids[len(m.Ids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeysWritten", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb + m.KeysWritten = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeysWritten |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesRead", wireType) } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + m.BytesRead = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BytesRead |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeysRead", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.KeysRead = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeysRead |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReportBatchSplitRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReportBatchSplitRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28665,16 +30830,16 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} + if m.Interval == nil { + m.Interval = &TimeInterval{} } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 16: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsages", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28701,64 +30866,14 @@ func (m *ReportBatchSplitRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Regions = append(m.Regions, &metapb.Region{}) - if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.CpuUsages = append(m.CpuUsages, &RecordPair{}) + if err := m.CpuUsages[len(m.CpuUsages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReportBatchSplitResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReportBatchSplitResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 17: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReadIoRates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -28785,68 +30900,16 @@ func (m *ReportBatchSplitResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimeInterval) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.ReadIoRates = append(m.ReadIoRates, &RecordPair{}) + if err := m.ReadIoRates[len(m.ReadIoRates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TimeInterval: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimeInterval: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTimestamp", wireType) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WriteIoRates", wireType) } - m.StartTimestamp = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28856,16 +30919,31 @@ func (m *TimeInterval) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTimestamp |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EndTimestamp", wireType) + if msglen < 0 { + return ErrInvalidLengthPdpb } - m.EndTimestamp = 0 + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WriteIoRates = append(m.WriteIoRates, &RecordPair{}) + if err := m.WriteIoRates[len(m.WriteIoRates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OpLatencies", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28875,66 +30953,31 @@ func (m *TimeInterval) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EndTimestamp |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RecordPair) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.OpLatencies = append(m.OpLatencies, &RecordPair{}) + if err := m.OpLatencies[len(m.OpLatencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RecordPair: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordPair: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PeerStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28944,29 +30987,31 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Key = string(dAtA[iNdEx:postIndex]) + m.PeerStats = append(m.PeerStats, &PeerStat{}) + if err := m.PeerStats[len(m.PeerStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", wireType) } - m.Value = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -28976,66 +31021,33 @@ func (m *RecordPair) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Value |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return ErrInvalidLengthPdpb } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerStat) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.QueryStats == nil { + m.QueryStats = &QueryStats{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PeerStat: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeerStat: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 22: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SlowScore", wireType) } - m.RegionId = 0 + m.SlowScore = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29043,18 +31055,94 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift - if b < 0x80 { - break + b := dAtA[iNdEx] + iNdEx++ + m.SlowScore |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 23: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DamagedRegionsId = append(m.DamagedRegionsId, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.DamagedRegionsId) == 0 { + m.DamagedRegionsId = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DamagedRegionsId = append(m.DamagedRegionsId, v) } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field DamagedRegionsId", wireType) } - case 2: + case 24: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsApplyBusy", wireType) } - m.ReadKeys = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29064,16 +31152,17 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadKeys |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadBytes", wireType) + m.IsApplyBusy = bool(v != 0) + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SnapshotStats", wireType) } - m.ReadBytes = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29083,14 +31172,29 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReadBytes |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 4: + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SnapshotStats = append(m.SnapshotStats, &SnapshotStat{}) + if err := m.SnapshotStats[len(m.SnapshotStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 26: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SlowTrend", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29117,18 +31221,18 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.QueryStats == nil { - m.QueryStats = &QueryStats{} + if m.SlowTrend == nil { + m.SlowTrend = &SlowTrend{} } - if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SlowTrend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + case 27: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WrittenKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsGrpcPaused", wireType) } - m.WrittenKeys = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29138,16 +31242,17 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WrittenKeys |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 6: + m.IsGrpcPaused = bool(v != 0) + case 28: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WrittenBytes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) } - m.WrittenBytes = 0 + m.TotalMemory = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29157,7 +31262,26 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WrittenBytes |= uint64(b&0x7F) << shift + m.TotalMemory |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 29: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsedMemory", wireType) + } + m.UsedMemory = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UsedMemory |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -29183,7 +31307,7 @@ func (m *PeerStat) Unmarshal(dAtA []byte) error { } return nil } -func (m *StoreStats) Unmarshal(dAtA []byte) error { +func (m *SlowTrend) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -29206,93 +31330,111 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StoreStats: wiretype end group for non-group") + return fmt.Errorf("proto: SlowTrend: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StoreStats: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SlowTrend: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field CauseValue", wireType) } - m.StoreId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StoreId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.CauseValue = float64(math.Float64frombits(v)) case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field CauseRate", wireType) } - m.Capacity = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Capacity |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.CauseRate = float64(math.Float64frombits(v)) case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Available", wireType) + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultValue", wireType) } - m.Available = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Available |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.ResultValue = float64(math.Float64frombits(v)) case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionCount", wireType) + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultRate", wireType) } - m.RegionCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RegionCount |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } - case 5: + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.ResultRate = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SnapshotStat) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SnapshotStat: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SnapshotStat: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SendingSnapCount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) } - m.SendingSnapCount = 0 + m.RegionId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29302,16 +31444,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SendingSnapCount |= uint32(b&0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 6: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReceivingSnapCount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GenerateDurationSec", wireType) } - m.ReceivingSnapCount = 0 + m.GenerateDurationSec = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29321,16 +31463,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ReceivingSnapCount |= uint32(b&0x7F) << shift + m.GenerateDurationSec |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 7: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SendDurationSec", wireType) } - m.StartTime = 0 + m.SendDurationSec = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29340,16 +31482,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.StartTime |= uint32(b&0x7F) << shift + m.SendDurationSec |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 8: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ApplyingSnapCount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TotalDurationSec", wireType) } - m.ApplyingSnapCount = 0 + m.TotalDurationSec = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29359,16 +31501,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ApplyingSnapCount |= uint32(b&0x7F) << shift + m.TotalDurationSec |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 9: + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsBusy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TransportSize", wireType) } - var v int + m.TransportSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29378,36 +31520,66 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.TransportSize |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.IsBusy = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UsedSize", wireType) + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - m.UsedSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UsedSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesWritten", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - m.BytesWritten = 0 + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PeerReport) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PeerReport: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PeerReport: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RaftState", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29417,16 +31589,33 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesWritten |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeysWritten", wireType) + if msglen < 0 { + return ErrInvalidLengthPdpb } - m.KeysWritten = 0 + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RaftState == nil { + m.RaftState = &raft_serverpb.RaftLocalState{} + } + if err := m.RaftState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionState", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29436,16 +31625,33 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysWritten |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 13: + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RegionState == nil { + m.RegionState = &raft_serverpb.RegionLocalState{} + } + if err := m.RegionState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesRead", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsForceLeader", wireType) } - m.BytesRead = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29455,16 +31661,17 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesRead |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 14: + m.IsForceLeader = bool(v != 0) + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeysRead", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HasCommitMerge", wireType) } - m.KeysRead = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29474,16 +31681,17 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeysRead |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + m.HasCommitMerge = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AppliedIndex", wireType) } - var msglen int + m.AppliedIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29493,31 +31701,64 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.AppliedIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Interval == nil { - m.Interval = &TimeInterval{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StoreReport) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if err := m.Interval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 16: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StoreReport: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StoreReport: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CpuUsages", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PeerReports", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29544,16 +31785,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CpuUsages = append(m.CpuUsages, &RecordPair{}) - if err := m.CpuUsages[len(m.CpuUsages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PeerReports = append(m.PeerReports, &PeerReport{}) + if err := m.PeerReports[len(m.PeerReports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadIoRates", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) } - var msglen int + m.Step = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29563,29 +31804,64 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Step |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ReadIoRates = append(m.ReadIoRates, &RecordPair{}) - if err := m.ReadIoRates[len(m.ReadIoRates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - iNdEx = postIndex - case 18: + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StoreHeartbeatRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StoreHeartbeatRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WriteIoRates", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29612,14 +31888,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WriteIoRates = append(m.WriteIoRates, &RecordPair{}) - if err := m.WriteIoRates[len(m.WriteIoRates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 19: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OpLatencies", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29646,14 +31924,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OpLatencies = append(m.OpLatencies, &RecordPair{}) - if err := m.OpLatencies[len(m.OpLatencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Stats == nil { + m.Stats = &StoreStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 20: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerStats", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StoreReport", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29680,14 +31960,16 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PeerStats = append(m.PeerStats, &PeerStat{}) - if err := m.PeerStats[len(m.PeerStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.StoreReport == nil { + m.StoreReport = &StoreReport{} + } + if err := m.StoreReport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 21: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueryStats", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DrAutosyncStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29714,133 +31996,68 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.QueryStats == nil { - m.QueryStats = &QueryStats{} + if m.DrAutosyncStatus == nil { + m.DrAutosyncStatus = &replication_modepb.StoreDRAutoSyncStatus{} } - if err := m.QueryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DrAutosyncStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SlowScore", wireType) + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - m.SlowScore = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SlowScore |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb } - case 23: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DamagedRegionsId = append(m.DamagedRegionsId, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.DamagedRegionsId) == 0 { - m.DamagedRegionsId = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DamagedRegionsId = append(m.DamagedRegionsId, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field DamagedRegionsId", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - case 24: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsApplyBusy", wireType) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.IsApplyBusy = bool(v != 0) - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SnapshotStats", wireType) + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DemoteFailedVoters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DemoteFailedVoters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) } - var msglen int + m.RegionId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -29850,29 +32067,14 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.RegionId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SnapshotStats = append(m.SnapshotStats, &SnapshotStat{}) - if err := m.SnapshotStats[len(m.SnapshotStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 26: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SlowTrend", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FailedVoters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -29899,71 +32101,11 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.SlowTrend == nil { - m.SlowTrend = &SlowTrend{} - } - if err := m.SlowTrend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.FailedVoters = append(m.FailedVoters, &metapb.Peer{}) + if err := m.FailedVoters[len(m.FailedVoters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 27: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsGrpcPaused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsGrpcPaused = bool(v != 0) - case 28: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMemory", wireType) - } - m.TotalMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalMemory |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 29: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UsedMemory", wireType) - } - m.UsedMemory = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UsedMemory |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -29985,7 +32127,7 @@ func (m *StoreStats) Unmarshal(dAtA []byte) error { } return nil } -func (m *SlowTrend) Unmarshal(dAtA []byte) error { +func (m *ForceLeader) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30008,56 +32150,164 @@ func (m *SlowTrend) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SlowTrend: wiretype end group for non-group") + return fmt.Errorf("proto: ForceLeader: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SlowTrend: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ForceLeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field CauseValue", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FailedStores = append(m.FailedStores, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.FailedStores) == 0 { + m.FailedStores = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FailedStores = append(m.FailedStores, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field FailedStores", wireType) } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.CauseValue = float64(math.Float64frombits(v)) case 2: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field CauseRate", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.CauseRate = float64(math.Float64frombits(v)) - case 3: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultValue", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.ResultValue = float64(math.Float64frombits(v)) - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field ResultRate", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EnterForceLeaders = append(m.EnterForceLeaders, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.EnterForceLeaders) == 0 { + m.EnterForceLeaders = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EnterForceLeaders = append(m.EnterForceLeaders, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field EnterForceLeaders", wireType) } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.ResultRate = float64(math.Float64frombits(v)) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -30079,7 +32329,7 @@ func (m *SlowTrend) Unmarshal(dAtA []byte) error { } return nil } -func (m *SnapshotStat) Unmarshal(dAtA []byte) error { +func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30102,93 +32352,17 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SnapshotStat: wiretype end group for non-group") + return fmt.Errorf("proto: RecoveryPlan: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SnapshotStat: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RecoveryPlan: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) - } - m.RegionId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GenerateDurationSec", wireType) - } - m.GenerateDurationSec = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GenerateDurationSec |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SendDurationSec", wireType) - } - m.SendDurationSec = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SendDurationSec |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalDurationSec", wireType) - } - m.TotalDurationSec = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalDurationSec |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TransportSize", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creates", wireType) } - m.TransportSize = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -30198,64 +32372,29 @@ func (m *SnapshotStat) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TransportSize |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerReport) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.Creates = append(m.Creates, &metapb.Region{}) + if err := m.Creates[len(m.Creates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PeerReport: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeerReport: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RaftState", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30282,16 +32421,90 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RaftState == nil { - m.RaftState = &raft_serverpb.RaftLocalState{} - } - if err := m.RaftState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Updates = append(m.Updates, &metapb.Region{}) + if err := m.Updates[len(m.Updates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - iNdEx = postIndex - case 2: + iNdEx = postIndex + case 3: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tombstones = append(m.Tombstones, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Tombstones) == 0 { + m.Tombstones = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tombstones = append(m.Tombstones, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Tombstones", wireType) + } + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionState", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Demotes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30318,18 +32531,16 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RegionState == nil { - m.RegionState = &raft_serverpb.RegionLocalState{} - } - if err := m.RegionState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Demotes = append(m.Demotes, &DemoteFailedVoters{}) + if err := m.Demotes[len(m.Demotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsForceLeader", wireType) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForceLeader", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -30339,37 +32550,33 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.IsForceLeader = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HasCommitMerge", wireType) + if msglen < 0 { + return ErrInvalidLengthPdpb } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - m.HasCommitMerge = bool(v != 0) - case 5: + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ForceLeader == nil { + m.ForceLeader = &ForceLeader{} + } + if err := m.ForceLeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AppliedIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) } - m.AppliedIndex = 0 + m.Step = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -30379,7 +32586,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AppliedIndex |= uint64(b&0x7F) << shift + m.Step |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -30405,7 +32612,7 @@ func (m *PeerReport) Unmarshal(dAtA []byte) error { } return nil } -func (m *StoreReport) Unmarshal(dAtA []byte) error { +func (m *AwakenRegions) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30428,51 +32635,143 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StoreReport: wiretype end group for non-group") + return fmt.Errorf("proto: AwakenRegions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StoreReport: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AwakenRegions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerReports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { + m.AbnormalStores = append(m.AbnormalStores, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } } + elementCount = count + if elementCount != 0 && len(m.AbnormalStores) == 0 { + m.AbnormalStores = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AbnormalStores = append(m.AbnormalStores, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field AbnormalStores", wireType) } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.PeerReports = append(m.PeerReports, &PeerReport{}) - if err := m.PeerReports[len(m.PeerReports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ControlGrpc) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - iNdEx = postIndex - case 2: + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ControlGrpc: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ControlGrpc: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CtrlEvent", wireType) } - m.Step = 0 + m.CtrlEvent = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -30482,7 +32781,7 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Step |= uint64(b&0x7F) << shift + m.CtrlEvent |= ControlGrpcEvent(b&0x7F) << shift if b < 0x80 { break } @@ -30508,7 +32807,7 @@ func (m *StoreReport) Unmarshal(dAtA []byte) error { } return nil } -func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { +func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30527,19 +32826,55 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if b < 0x80 { break } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StoreHeartbeatRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StoreHeartbeatRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StoreHeartbeatResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StoreHeartbeatResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30566,16 +32901,68 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.ReplicationStatus{} } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClusterVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireDetailedReport", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireDetailedReport = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecoveryPlan", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30602,16 +32989,16 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Stats == nil { - m.Stats = &StoreStats{} + if m.RecoveryPlan == nil { + m.RecoveryPlan = &RecoveryPlan{} } - if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RecoveryPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StoreReport", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AwakenRegions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30638,16 +33025,16 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.StoreReport == nil { - m.StoreReport = &StoreReport{} + if m.AwakenRegions == nil { + m.AwakenRegions = &AwakenRegions{} } - if err := m.StoreReport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AwakenRegions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DrAutosyncStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ControlGrpc", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30674,10 +33061,10 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.DrAutosyncStatus == nil { - m.DrAutosyncStatus = &replication_modepb.StoreDRAutoSyncStatus{} + if m.ControlGrpc == nil { + m.ControlGrpc = &ControlGrpc{} } - if err := m.DrAutosyncStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ControlGrpc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -30702,7 +33089,7 @@ func (m *StoreHeartbeatRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { +func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -30725,13 +33112,49 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DemoteFailedVoters: wiretype end group for non-group") + return fmt.Errorf("proto: ScatterRegionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DemoteFailedVoters: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ScatterRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) } @@ -30750,9 +33173,9 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { break } } - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedVoters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -30779,62 +33202,82 @@ func (m *DemoteFailedVoters) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.FailedVoters = append(m.FailedVoters, &metapb.Peer{}) - if err := m.FailedVoters[len(m.FailedVoters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Region == nil { + m.Region = &metapb.Region{} + } + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { return ErrInvalidLengthPdpb } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ForceLeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb + if m.Leader == nil { + m.Leader = &metapb.Peer{} } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ForceLeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ForceLeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Group = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: if wireType == 0 { var v uint64 for shift := uint(0); ; shift += 7 { @@ -30851,7 +33294,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { break } } - m.FailedStores = append(m.FailedStores, v) + m.RegionsId = append(m.RegionsId, v) } else if wireType == 2 { var packedLen int for shift := uint(0); ; shift += 7 { @@ -30886,8 +33329,8 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } } elementCount = count - if elementCount != 0 && len(m.FailedStores) == 0 { - m.FailedStores = make([]uint64, 0, elementCount) + if elementCount != 0 && len(m.RegionsId) == 0 { + m.RegionsId = make([]uint64, 0, elementCount) } for iNdEx < postIndex { var v uint64 @@ -30905,87 +33348,50 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { break } } - m.FailedStores = append(m.FailedStores, v) + m.RegionsId = append(m.RegionsId, v) } } else { - return fmt.Errorf("proto: wrong wireType = %d for field FailedStores", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RegionsId", wireType) } - case 2: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RetryLimit", wireType) + } + m.RetryLimit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - m.EnterForceLeaders = append(m.EnterForceLeaders, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if packedLen < 0 { - return ErrInvalidLengthPdpb + b := dAtA[iNdEx] + iNdEx++ + m.RetryLimit |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipStoreLimit", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.EnterForceLeaders) == 0 { - m.EnterForceLeaders = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EnterForceLeaders = append(m.EnterForceLeaders, v) + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field EnterForceLeaders", wireType) } + m.SkipStoreLimit = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -31007,7 +33413,7 @@ func (m *ForceLeader) Unmarshal(dAtA []byte) error { } return nil } -func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { +func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31030,15 +33436,15 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RecoveryPlan: wiretype end group for non-group") + return fmt.Errorf("proto: ScatterRegionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RecoveryPlan: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ScatterRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creates", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31065,16 +33471,18 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Creates = append(m.Creates, &metapb.Region{}) - if err := m.Creates[len(m.Creates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FinishedPercentage", wireType) } - var msglen int + m.FinishedPercentage = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31084,105 +33492,64 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.FinishedPercentage |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Updates = append(m.Updates, &metapb.Region{}) - if err := m.Updates[len(m.Updates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - iNdEx = postIndex - case 3: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Tombstones = append(m.Tombstones, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Tombstones) == 0 { - m.Tombstones = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Tombstones = append(m.Tombstones, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Tombstones", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - case 4: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetGCSafePointRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGCSafePointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Demotes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31209,14 +33576,66 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Demotes = append(m.Demotes, &DemoteFailedVoters{}) - if err := m.Demotes[len(m.Demotes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetGCSafePointResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGCSafePointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForceLeader", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31243,18 +33662,18 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ForceLeader == nil { - m.ForceLeader = &ForceLeader{} + if m.Header == nil { + m.Header = &ResponseHeader{} } - if err := m.ForceLeader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) } - m.Step = 0 + m.SafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31264,7 +33683,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Step |= uint64(b&0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31290,7 +33709,7 @@ func (m *RecoveryPlan) Unmarshal(dAtA []byte) error { } return nil } -func (m *AwakenRegions) Unmarshal(dAtA []byte) error { +func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31313,87 +33732,85 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AwakenRegions: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateGCSafePointRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AwakenRegions: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateGCSafePointRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - m.AbnormalStores = append(m.AbnormalStores, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if iNdEx >= l { + return io.ErrUnexpectedEOF } - if packedLen < 0 { - return ErrInvalidLengthPdpb + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + m.Target = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } + b := dAtA[iNdEx] + iNdEx++ + m.Target |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - elementCount = count - if elementCount != 0 && len(m.AbnormalStores) == 0 { - m.AbnormalStores = make([]uint64, 0, elementCount) + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + } + m.KeyspaceId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AbnormalStores = append(m.AbnormalStores, v) + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeyspaceId |= uint32(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field AbnormalStores", wireType) } default: iNdEx = preIndex @@ -31416,7 +33833,7 @@ func (m *AwakenRegions) Unmarshal(dAtA []byte) error { } return nil } -func (m *ControlGrpc) Unmarshal(dAtA []byte) error { +func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31426,30 +33843,66 @@ func (m *ControlGrpc) Unmarshal(dAtA []byte) error { if shift >= 64 { return ErrIntOverflowPdpb } - if iNdEx >= l { + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateGCSafePointResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateGCSafePointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if m.Header == nil { + m.Header = &ResponseHeader{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ControlGrpc: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ControlGrpc: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CtrlEvent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewGcSafePoint", wireType) } - m.CtrlEvent = 0 + m.NewGcSafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31459,7 +33912,7 @@ func (m *ControlGrpc) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CtrlEvent |= ControlGrpcEvent(b&0x7F) << shift + m.NewGcSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -31485,7 +33938,7 @@ func (m *ControlGrpc) Unmarshal(dAtA []byte) error { } return nil } -func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31508,10 +33961,10 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StoreHeartbeatResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateServiceGCSafePointRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StoreHeartbeatResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateServiceGCSafePointRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -31544,7 +33997,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -31552,9 +34005,9 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceId", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31564,33 +34017,31 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReplicationStatus == nil { - m.ReplicationStatus = &replication_modepb.ReplicationStatus{} - } - if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ServiceId = append(m.ServiceId[:0], dAtA[iNdEx:postIndex]...) + if m.ServiceId == nil { + m.ServiceId = []byte{} } iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterVersion", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) } - var stringLen uint64 + m.TTL = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31600,29 +34051,16 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.TTL |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequireDetailedReport", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) } - var v int + m.SafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31632,15 +34070,64 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.RequireDetailedReport = bool(v != 0) - case 5: + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateServiceGCSafePointResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateServiceGCSafePointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecoveryPlan", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31667,18 +34154,18 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.RecoveryPlan == nil { - m.RecoveryPlan = &RecoveryPlan{} + if m.Header == nil { + m.Header = &ResponseHeader{} } - if err := m.RecoveryPlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 6: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AwakenRegions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceId", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31688,33 +34175,31 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.AwakenRegions == nil { - m.AwakenRegions = &AwakenRegions{} - } - if err := m.AwakenRegions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ServiceId = append(m.ServiceId[:0], dAtA[iNdEx:postIndex]...) + if m.ServiceId == nil { + m.ServiceId = []byte{} } iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControlGrpc", wireType) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) } - var msglen int + m.TTL = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31724,28 +34209,30 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.TTL |= int64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ControlGrpc == nil { - m.ControlGrpc = &ControlGrpc{} + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinSafePoint", wireType) } - if err := m.ControlGrpc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.MinSafePoint = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinSafePoint |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -31767,7 +34254,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { +func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -31790,10 +34277,10 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ScatterRegionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetGCSafePointV2Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ScatterRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -31834,9 +34321,9 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) } - m.RegionId = 0 + m.KeyspaceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31846,14 +34333,64 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RegionId |= uint64(b&0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } } - case 3: + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetGCSafePointV2Response: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -31880,18 +34417,18 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Region == nil { - m.Region = &metapb.Region{} + if m.Header == nil { + m.Header = &ResponseHeader{} } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) } - var msglen int + m.SafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31901,33 +34438,66 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthPdpb } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Leader == nil { - m.Leader = &metapb.Peer{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb } - if err := m.Leader.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 5: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WatchGCSafePointV2Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WatchGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -31937,124 +34507,33 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RegionsId = append(m.RegionsId, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.RegionsId) == 0 { - m.RegionsId = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RegionsId = append(m.RegionsId, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field RegionsId", wireType) - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryLimit", wireType) + if m.Header == nil { + m.Header = &RequestHeader{} } - m.RetryLimit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RetryLimit |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - case 8: + iNdEx = postIndex + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipStoreLimit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) } - var v int + m.Revision = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32064,12 +34543,11 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } } - m.SkipStoreLimit = bool(v != 0) default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -32091,7 +34569,7 @@ func (m *ScatterRegionRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { +func (m *SafePointEvent) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32114,17 +34592,17 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ScatterRegionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SafePointEvent: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ScatterRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SafePointEvent: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) } - var msglen int + m.KeyspaceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32134,33 +34612,35 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &ResponseHeader{} + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.SafePoint = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SafePoint |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 2: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FinishedPercentage", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) } - m.FinishedPercentage = 0 + m.Type = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32170,7 +34650,7 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FinishedPercentage |= uint64(b&0x7F) << shift + m.Type |= EventType(b&0x7F) << shift if b < 0x80 { break } @@ -32196,7 +34676,7 @@ func (m *ScatterRegionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { +func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32219,10 +34699,10 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetGCSafePointRequest: wiretype end group for non-group") + return fmt.Errorf("proto: WatchGCSafePointV2Response: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetGCSafePointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: WatchGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -32255,65 +34735,15 @@ func (m *GetGCSafePointRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &RequestHeader{} + m.Header = &ResponseHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetGCSafePointResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetGCSafePointResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -32340,18 +34770,16 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &ResponseHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Events = append(m.Events, &SafePointEvent{}) + if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) } - m.SafePoint = 0 + m.Revision = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32361,7 +34789,7 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -32387,7 +34815,7 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32410,10 +34838,10 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateGCSafePointRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateGCSafePointV2Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGCSafePointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -32453,6 +34881,25 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + } + m.KeyspaceId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeyspaceId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) } @@ -32492,7 +34939,7 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32515,10 +34962,10 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateGCSafePointResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateGCSafePointV2Response: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGCSafePointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -32597,7 +35044,7 @@ func (m *UpdateGCSafePointResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32620,10 +35067,10 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateServiceGCSafePointRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateServiceSafePointV2Request: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceGCSafePointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateServiceSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -32663,6 +35110,25 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + } + m.KeyspaceId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeyspaceId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ServiceId", wireType) } @@ -32696,11 +35162,11 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { m.ServiceId = []byte{} } iNdEx = postIndex - case 3: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) } - m.TTL = 0 + m.SafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32710,16 +35176,16 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TTL |= int64(b&0x7F) << shift + m.SafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 4: + case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType) } - m.SafePoint = 0 + m.Ttl = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32729,7 +35195,7 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.Ttl |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -32755,7 +35221,7 @@ func (m *UpdateServiceGCSafePointRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32778,10 +35244,10 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateServiceGCSafePointResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateServiceSafePointV2Response: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceGCSafePointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateServiceSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -32856,9 +35322,9 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType) } - m.TTL = 0 + m.Ttl = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32868,7 +35334,7 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TTL |= int64(b&0x7F) << shift + m.Ttl |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -32913,7 +35379,93 @@ func (m *UpdateServiceGCSafePointResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { +func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetAllGCSafePointV2Request: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAllGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &RequestHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -32936,17 +35488,17 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetGCSafePointV2Request: wiretype end group for non-group") + return fmt.Errorf("proto: GCSafePointV2: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GCSafePointV2: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) } - var msglen int + m.KeyspaceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32956,33 +35508,16 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Header == nil { - m.Header = &RequestHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GcSafePoint", wireType) } - m.KeyspaceId = 0 + m.GcSafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -32992,7 +35527,7 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.GcSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33018,7 +35553,7 @@ func (m *GetGCSafePointV2Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { +func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33041,10 +35576,10 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetGCSafePointV2Response: wiretype end group for non-group") + return fmt.Errorf("proto: GetAllGCSafePointV2Response: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAllGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -33084,10 +35619,44 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GcSafePoints", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GcSafePoints = append(m.GcSafePoints, &GCSafePointV2{}) + if err := m.GcSafePoints[len(m.GcSafePoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) } - m.SafePoint = 0 + m.Revision = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33097,7 +35666,7 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.Revision |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -33123,7 +35692,7 @@ func (m *GetGCSafePointV2Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { +func (m *UpdateTxnSafePointRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33146,10 +35715,10 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WatchGCSafePointV2Request: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateTxnSafePointRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WatchGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateTxnSafePointRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -33190,9 +35759,9 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) } - m.Revision = 0 + m.KeyspaceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33202,7 +35771,26 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.KeyspaceId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + m.Target = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Target |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33228,7 +35816,7 @@ func (m *WatchGCSafePointV2Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *SafePointEvent) Unmarshal(dAtA []byte) error { +func (m *UpdateTxnSafePointResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33251,17 +35839,17 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SafePointEvent: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateTxnSafePointResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SafePointEvent: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateTxnSafePointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) } - m.KeyspaceId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33271,35 +35859,33 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) + if msglen < 0 { + return ErrInvalidLengthPdpb } - m.SafePoint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb } - case 3: + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewTxnSafePoint", wireType) } - m.Type = 0 + m.NewTxnSafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33309,7 +35895,7 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= EventType(b&0x7F) << shift + m.NewTxnSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -33335,7 +35921,7 @@ func (m *SafePointEvent) Unmarshal(dAtA []byte) error { } return nil } -func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { +func (m *SetGCBarrierRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33358,10 +35944,10 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WatchGCSafePointV2Response: wiretype end group for non-group") + return fmt.Errorf("proto: SetGCBarrierRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WatchGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetGCBarrierRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -33394,17 +35980,36 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Header == nil { - m.Header = &ResponseHeader{} + m.Header = &RequestHeader{} } if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + } + m.KeyspaceId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeyspaceId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BarrierId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33414,31 +36019,29 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.Events = append(m.Events, &SafePointEvent{}) - if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BarrierId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BarrierTs", wireType) } - m.Revision = 0 + m.BarrierTs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33448,7 +36051,26 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.BarrierTs |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TtlSeconds", wireType) + } + m.TtlSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TtlSeconds |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -33474,7 +36096,7 @@ func (m *WatchGCSafePointV2Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { +func (m *GCBarrierInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33497,17 +36119,17 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateGCSafePointV2Request: wiretype end group for non-group") + return fmt.Errorf("proto: GCBarrierInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GCBarrierInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BarrierId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33517,33 +36139,29 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Header == nil { - m.Header = &RequestHeader{} - } - if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.BarrierId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BarrierTs", wireType) } - m.KeyspaceId = 0 + m.BarrierTs = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33553,16 +36171,16 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + m.BarrierTs |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TtlSeconds", wireType) } - m.SafePoint = 0 + m.TtlSeconds = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33572,7 +36190,7 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift + m.TtlSeconds |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -33598,7 +36216,7 @@ func (m *UpdateGCSafePointV2Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { +func (m *SetGCBarrierResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33621,10 +36239,10 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateGCSafePointV2Response: wiretype end group for non-group") + return fmt.Errorf("proto: SetGCBarrierResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetGCBarrierResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -33664,10 +36282,10 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NewSafePoint", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewBarrierInfo", wireType) } - m.NewSafePoint = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33677,11 +36295,28 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NewSafePoint |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NewBarrierInfo == nil { + m.NewBarrierInfo = &GCBarrierInfo{} + } + if err := m.NewBarrierInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -33703,7 +36338,7 @@ func (m *UpdateGCSafePointV2Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { +func (m *DeleteGCBarrierRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33726,10 +36361,10 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateServiceSafePointV2Request: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteGCBarrierRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteGCBarrierRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -33789,9 +36424,9 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BarrierId", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33801,64 +36436,24 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.ServiceId = append(m.ServiceId[:0], dAtA[iNdEx:postIndex]...) - if m.ServiceId == nil { - m.ServiceId = []byte{} - } + m.BarrierId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SafePoint", wireType) - } - m.SafePoint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SafePoint |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType) - } - m.Ttl = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Ttl |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -33880,7 +36475,7 @@ func (m *UpdateServiceSafePointV2Request) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { +func (m *DeleteGCBarrierResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -33903,10 +36498,10 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateServiceSafePointV2Response: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteGCBarrierResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteGCBarrierResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -33947,9 +36542,9 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DeletedBarrierInfo", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33959,64 +36554,28 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthPdpb } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthPdpb } if postIndex > l { return io.ErrUnexpectedEOF } - m.ServiceId = append(m.ServiceId[:0], dAtA[iNdEx:postIndex]...) - if m.ServiceId == nil { - m.ServiceId = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType) - } - m.Ttl = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Ttl |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinSafePoint", wireType) + if m.DeletedBarrierInfo == nil { + m.DeletedBarrierInfo = &GCBarrierInfo{} } - m.MinSafePoint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinSafePoint |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.DeletedBarrierInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -34038,7 +36597,7 @@ func (m *UpdateServiceSafePointV2Response) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { +func (m *GetGCStateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -34061,10 +36620,10 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAllGCSafePointV2Request: wiretype end group for non-group") + return fmt.Errorf("proto: GetGCStateRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAllGCSafePointV2Request: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetGCStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -34103,57 +36662,7 @@ func (m *GetAllGCSafePointV2Request) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPdpb(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPdpb - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GCSafePointV2: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GCSafePointV2: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) } @@ -34172,25 +36681,6 @@ func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GcSafePoint", wireType) - } - m.GcSafePoint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPdpb - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GcSafePoint |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -34212,7 +36702,7 @@ func (m *GCSafePointV2) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { +func (m *GetGCStateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -34235,10 +36725,10 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAllGCSafePointV2Response: wiretype end group for non-group") + return fmt.Errorf("proto: GetGCStateResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAllGCSafePointV2Response: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetGCStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -34278,10 +36768,10 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GcSafePoints", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxnSafePoint", wireType) } - var msglen int + m.TxnSafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -34291,31 +36781,16 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.TxnSafePoint |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthPdpb - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPdpb - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GcSafePoints = append(m.GcSafePoints, &GCSafePointV2{}) - if err := m.GcSafePoints[len(m.GcSafePoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GcSafePoint", wireType) } - m.Revision = 0 + m.GcSafePoint = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -34325,11 +36800,45 @@ func (m *GetAllGCSafePointV2Response) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Revision |= int64(b&0x7F) << shift + m.GcSafePoint |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GcBarriers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GcBarriers = append(m.GcBarriers, &GCBarrierInfo{}) + if err := m.GcBarriers[len(m.GcBarriers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) diff --git a/proto/pdpb.proto b/proto/pdpb.proto index b97302cea..5dc3a2097 100644 --- a/proto/pdpb.proto +++ b/proto/pdpb.proto @@ -95,6 +95,14 @@ service PD { rpc GetAllGCSafePointV2(GetAllGCSafePointV2Request) returns (GetAllGCSafePointV2Response) {} + rpc UpdateTxnSafePoint(UpdateTxnSafePointRequest) returns (UpdateTxnSafePointResponse) {} + + rpc SetGCBarrier(SetGCBarrierRequest) returns (SetGCBarrierResponse) {} + + rpc DeleteGCBarrier(DeleteGCBarrierRequest) returns (DeleteGCBarrierResponse) {} + + rpc GetGCState(GetGCStateRequest) returns (GetGCStateResponse) {} + rpc SyncRegions(stream SyncRegionRequest) returns (stream SyncRegionResponse) {} rpc GetOperator(GetOperatorRequest) returns (GetOperatorResponse) {} @@ -868,13 +876,17 @@ message GetGCSafePointResponse { message UpdateGCSafePointRequest { RequestHeader header = 1; - uint64 safe_point = 2; + uint64 target = 2; + // The UpdateGCSafePoint API will be in the set of both legacy API and new API, but its behavior will be the same so we don't need to + // avoid the collision on the method name. When it's used as a member of the new API set, the keyspace_id field can be used to specify + // a keyspace. + uint32 keyspace_id = 3; } message UpdateGCSafePointResponse { ResponseHeader header = 1; - uint64 new_safe_point = 2; + uint64 new_gc_safe_point = 2; } message UpdateServiceGCSafePointRequest { @@ -974,6 +986,70 @@ message GetAllGCSafePointV2Response { int64 revision = 3; } +message UpdateTxnSafePointRequest { + RequestHeader header = 1; + + uint32 keyspace_id = 2; + uint64 target = 3; +} + +message UpdateTxnSafePointResponse { + ResponseHeader header = 1; + + uint64 new_txn_safe_point = 2; +} + +message SetGCBarrierRequest { + RequestHeader header = 1; + + uint32 keyspace_id = 2; + + string barrier_id = 3; + uint64 barrier_ts = 4; + int64 ttl_seconds = 5; +} + +message GCBarrierInfo { + string barrier_id = 1; + uint64 barrier_ts = 2; + int64 ttl_seconds = 3; +} + +message SetGCBarrierResponse { + ResponseHeader header = 1; + + GCBarrierInfo new_barrier_info = 2; +} + +message DeleteGCBarrierRequest { + RequestHeader header = 1; + + uint32 keyspace_id = 2; + + string barrier_id = 3; +} + +message DeleteGCBarrierResponse { + ResponseHeader header = 1; + + GCBarrierInfo deleted_barrier_info = 2; +} + +message GetGCStateRequest { + RequestHeader header = 1; + + uint32 keyspace_id = 2; +} + +message GetGCStateResponse { + ResponseHeader header = 1; + + + uint64 txn_safe_point = 2; + uint64 gc_safe_point = 3; + repeated GCBarrierInfo gc_barriers = 4; +} + message RegionStat { // Bytes read/written during this period. uint64 bytes_written = 1; diff --git a/scripts/proto.lock b/scripts/proto.lock index 18a38a8f5..48079fec3 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -16078,8 +16078,13 @@ }, { "id": 2, - "name": "safe_point", + "name": "target", "type": "uint64" + }, + { + "id": 3, + "name": "keyspace_id", + "type": "uint32" } ] }, @@ -16093,7 +16098,7 @@ }, { "id": 2, - "name": "new_safe_point", + "name": "new_gc_safe_point", "type": "uint64" } ] @@ -16370,6 +16375,182 @@ } ] }, + { + "name": "UpdateTxnSafePointRequest", + "fields": [ + { + "id": 1, + "name": "header", + "type": "RequestHeader" + }, + { + "id": 2, + "name": "keyspace_id", + "type": "uint32" + }, + { + "id": 3, + "name": "target", + "type": "uint64" + } + ] + }, + { + "name": "UpdateTxnSafePointResponse", + "fields": [ + { + "id": 1, + "name": "header", + "type": "ResponseHeader" + }, + { + "id": 2, + "name": "new_txn_safe_point", + "type": "uint64" + } + ] + }, + { + "name": "SetGCBarrierRequest", + "fields": [ + { + "id": 1, + "name": "header", + "type": "RequestHeader" + }, + { + "id": 2, + "name": "keyspace_id", + "type": "uint32" + }, + { + "id": 3, + "name": "barrier_id", + "type": "string" + }, + { + "id": 4, + "name": "barrier_ts", + "type": "uint64" + }, + { + "id": 5, + "name": "ttl_seconds", + "type": "int64" + } + ] + }, + { + "name": "GCBarrierInfo", + "fields": [ + { + "id": 1, + "name": "barrier_id", + "type": "string" + }, + { + "id": 2, + "name": "barrier_ts", + "type": "uint64" + }, + { + "id": 3, + "name": "ttl_seconds", + "type": "int64" + } + ] + }, + { + "name": "SetGCBarrierResponse", + "fields": [ + { + "id": 1, + "name": "header", + "type": "ResponseHeader" + }, + { + "id": 2, + "name": "new_barrier_info", + "type": "GCBarrierInfo" + } + ] + }, + { + "name": "DeleteGCBarrierRequest", + "fields": [ + { + "id": 1, + "name": "header", + "type": "RequestHeader" + }, + { + "id": 2, + "name": "keyspace_id", + "type": "uint32" + }, + { + "id": 3, + "name": "barrier_id", + "type": "string" + } + ] + }, + { + "name": "DeleteGCBarrierResponse", + "fields": [ + { + "id": 1, + "name": "header", + "type": "ResponseHeader" + }, + { + "id": 2, + "name": "deleted_barrier_info", + "type": "GCBarrierInfo" + } + ] + }, + { + "name": "GetGCStateRequest", + "fields": [ + { + "id": 1, + "name": "header", + "type": "RequestHeader" + }, + { + "id": 2, + "name": "keyspace_id", + "type": "uint32" + } + ] + }, + { + "name": "GetGCStateResponse", + "fields": [ + { + "id": 1, + "name": "header", + "type": "ResponseHeader" + }, + { + "id": 2, + "name": "txn_safe_point", + "type": "uint64" + }, + { + "id": 3, + "name": "gc_safe_point", + "type": "uint64" + }, + { + "id": 4, + "name": "gc_barriers", + "type": "GCBarrierInfo", + "is_repeated": true + } + ] + }, { "name": "RegionStat", "fields": [ @@ -17080,6 +17261,26 @@ "in_type": "GetAllGCSafePointV2Request", "out_type": "GetAllGCSafePointV2Response" }, + { + "name": "UpdateTxnSafePoint", + "in_type": "UpdateTxnSafePointRequest", + "out_type": "UpdateTxnSafePointResponse" + }, + { + "name": "SetGCBarrier", + "in_type": "SetGCBarrierRequest", + "out_type": "SetGCBarrierResponse" + }, + { + "name": "DeleteGCBarrier", + "in_type": "DeleteGCBarrierRequest", + "out_type": "DeleteGCBarrierResponse" + }, + { + "name": "GetGCState", + "in_type": "GetGCStateRequest", + "out_type": "GetGCStateResponse" + }, { "name": "SyncRegions", "in_type": "SyncRegionRequest", From f8be07eac6e53de1fa672b3426f37ae73446f6c6 Mon Sep 17 00:00:00 2001 From: MyonKeminta Date: Wed, 8 Jan 2025 16:12:36 +0800 Subject: [PATCH 2/2] Update definition of keyspace specifier in requests to avoid potential misuses Signed-off-by: MyonKeminta --- pkg/pdpb/pdpb.pb.go | 1409 ++++++++++++++++++++++++++----------------- proto/pdpb.proto | 22 +- scripts/proto.lock | 30 +- 3 files changed, 883 insertions(+), 578 deletions(-) diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index 0cfc9db34..7e7b884e5 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -5579,20 +5579,68 @@ func (m *GetGCSafePointResponse) GetSafePoint() uint64 { return 0 } +// A wrapper over keyspace_id. +// When a field is not specified in proto3, its value will be regarded as 0; however, keyspace_id = 0 is regarded as a valid keyspace (which +// is the "DEFAULT" keyspace). To distinguish unspecified keyspace (NullKeyspace, 0xffffffff) and the default keyspace in some APIs as well +// as preventing potential misuse, we wrap the keyspace_id into a message type which is nullable. +type KeyspaceScope struct { + KeyspaceId uint32 `protobuf:"varint,1,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` +} + +func (m *KeyspaceScope) Reset() { *m = KeyspaceScope{} } +func (m *KeyspaceScope) String() string { return proto.CompactTextString(m) } +func (*KeyspaceScope) ProtoMessage() {} +func (*KeyspaceScope) Descriptor() ([]byte, []int) { + return fileDescriptor_78b27e6f04f44c6e, []int{83} +} +func (m *KeyspaceScope) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyspaceScope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyspaceScope.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *KeyspaceScope) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyspaceScope.Merge(m, src) +} +func (m *KeyspaceScope) XXX_Size() int { + return m.Size() +} +func (m *KeyspaceScope) XXX_DiscardUnknown() { + xxx_messageInfo_KeyspaceScope.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyspaceScope proto.InternalMessageInfo + +func (m *KeyspaceScope) GetKeyspaceId() uint32 { + if m != nil { + return m.KeyspaceId + } + return 0 +} + type UpdateGCSafePointRequest struct { Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Target uint64 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` // The UpdateGCSafePoint API will be in the set of both legacy API and new API, but its behavior will be the same so we don't need to // avoid the collision on the method name. When it's used as a member of the new API set, the keyspace_id field can be used to specify // a keyspace. - KeyspaceId uint32 `protobuf:"varint,3,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + KeyspaceScope *KeyspaceScope `protobuf:"bytes,3,opt,name=keyspace_scope,json=keyspaceScope,proto3" json:"keyspace_scope,omitempty"` } func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointRequest{} } func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointRequest) ProtoMessage() {} func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{83} + return fileDescriptor_78b27e6f04f44c6e, []int{84} } func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5635,11 +5683,11 @@ func (m *UpdateGCSafePointRequest) GetTarget() uint64 { return 0 } -func (m *UpdateGCSafePointRequest) GetKeyspaceId() uint32 { +func (m *UpdateGCSafePointRequest) GetKeyspaceScope() *KeyspaceScope { if m != nil { - return m.KeyspaceId + return m.KeyspaceScope } - return 0 + return nil } type UpdateGCSafePointResponse struct { @@ -5651,7 +5699,7 @@ func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResp func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointResponse) ProtoMessage() {} func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{84} + return fileDescriptor_78b27e6f04f44c6e, []int{85} } func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5705,7 +5753,7 @@ func (m *UpdateServiceGCSafePointRequest) Reset() { *m = UpdateServiceGC func (m *UpdateServiceGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointRequest) ProtoMessage() {} func (*UpdateServiceGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{85} + return fileDescriptor_78b27e6f04f44c6e, []int{86} } func (m *UpdateServiceGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5773,7 +5821,7 @@ func (m *UpdateServiceGCSafePointResponse) Reset() { *m = UpdateServiceG func (m *UpdateServiceGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointResponse) ProtoMessage() {} func (*UpdateServiceGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{86} + return fileDescriptor_78b27e6f04f44c6e, []int{87} } func (m *UpdateServiceGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5839,7 +5887,7 @@ func (m *GetGCSafePointV2Request) Reset() { *m = GetGCSafePointV2Request func (m *GetGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointV2Request) ProtoMessage() {} func (*GetGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{87} + return fileDescriptor_78b27e6f04f44c6e, []int{88} } func (m *GetGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5891,7 +5939,7 @@ func (m *GetGCSafePointV2Response) Reset() { *m = GetGCSafePointV2Respon func (m *GetGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointV2Response) ProtoMessage() {} func (*GetGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{88} + return fileDescriptor_78b27e6f04f44c6e, []int{89} } func (m *GetGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5943,7 +5991,7 @@ func (m *WatchGCSafePointV2Request) Reset() { *m = WatchGCSafePointV2Req func (m *WatchGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*WatchGCSafePointV2Request) ProtoMessage() {} func (*WatchGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{89} + return fileDescriptor_78b27e6f04f44c6e, []int{90} } func (m *WatchGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5997,7 +6045,7 @@ func (m *SafePointEvent) Reset() { *m = SafePointEvent{} } func (m *SafePointEvent) String() string { return proto.CompactTextString(m) } func (*SafePointEvent) ProtoMessage() {} func (*SafePointEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{90} + return fileDescriptor_78b27e6f04f44c6e, []int{91} } func (m *SafePointEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6057,7 +6105,7 @@ func (m *WatchGCSafePointV2Response) Reset() { *m = WatchGCSafePointV2Re func (m *WatchGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*WatchGCSafePointV2Response) ProtoMessage() {} func (*WatchGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{91} + return fileDescriptor_78b27e6f04f44c6e, []int{92} } func (m *WatchGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6117,7 +6165,7 @@ func (m *UpdateGCSafePointV2Request) Reset() { *m = UpdateGCSafePointV2R func (m *UpdateGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointV2Request) ProtoMessage() {} func (*UpdateGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{92} + return fileDescriptor_78b27e6f04f44c6e, []int{93} } func (m *UpdateGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6176,7 +6224,7 @@ func (m *UpdateGCSafePointV2Response) Reset() { *m = UpdateGCSafePointV2 func (m *UpdateGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointV2Response) ProtoMessage() {} func (*UpdateGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{93} + return fileDescriptor_78b27e6f04f44c6e, []int{94} } func (m *UpdateGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6236,7 +6284,7 @@ func (m *UpdateServiceSafePointV2Request) Reset() { *m = UpdateServiceSa func (m *UpdateServiceSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Request) ProtoMessage() {} func (*UpdateServiceSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{94} + return fileDescriptor_78b27e6f04f44c6e, []int{95} } func (m *UpdateServiceSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6311,7 +6359,7 @@ func (m *UpdateServiceSafePointV2Response) Reset() { *m = UpdateServiceS func (m *UpdateServiceSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*UpdateServiceSafePointV2Response) ProtoMessage() {} func (*UpdateServiceSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{95} + return fileDescriptor_78b27e6f04f44c6e, []int{96} } func (m *UpdateServiceSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6376,7 +6424,7 @@ func (m *GetAllGCSafePointV2Request) Reset() { *m = GetAllGCSafePointV2R func (m *GetAllGCSafePointV2Request) String() string { return proto.CompactTextString(m) } func (*GetAllGCSafePointV2Request) ProtoMessage() {} func (*GetAllGCSafePointV2Request) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{96} + return fileDescriptor_78b27e6f04f44c6e, []int{97} } func (m *GetAllGCSafePointV2Request) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6421,7 +6469,7 @@ func (m *GCSafePointV2) Reset() { *m = GCSafePointV2{} } func (m *GCSafePointV2) String() string { return proto.CompactTextString(m) } func (*GCSafePointV2) ProtoMessage() {} func (*GCSafePointV2) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{97} + return fileDescriptor_78b27e6f04f44c6e, []int{98} } func (m *GCSafePointV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6474,7 +6522,7 @@ func (m *GetAllGCSafePointV2Response) Reset() { *m = GetAllGCSafePointV2 func (m *GetAllGCSafePointV2Response) String() string { return proto.CompactTextString(m) } func (*GetAllGCSafePointV2Response) ProtoMessage() {} func (*GetAllGCSafePointV2Response) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{98} + return fileDescriptor_78b27e6f04f44c6e, []int{99} } func (m *GetAllGCSafePointV2Response) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6525,16 +6573,16 @@ func (m *GetAllGCSafePointV2Response) GetRevision() int64 { } type UpdateTxnSafePointRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - Target uint64 `protobuf:"varint,3,opt,name=target,proto3" json:"target,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceScope *KeyspaceScope `protobuf:"bytes,2,opt,name=keyspace_scope,json=keyspaceScope,proto3" json:"keyspace_scope,omitempty"` + Target uint64 `protobuf:"varint,3,opt,name=target,proto3" json:"target,omitempty"` } func (m *UpdateTxnSafePointRequest) Reset() { *m = UpdateTxnSafePointRequest{} } func (m *UpdateTxnSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateTxnSafePointRequest) ProtoMessage() {} func (*UpdateTxnSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{99} + return fileDescriptor_78b27e6f04f44c6e, []int{100} } func (m *UpdateTxnSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6570,11 +6618,11 @@ func (m *UpdateTxnSafePointRequest) GetHeader() *RequestHeader { return nil } -func (m *UpdateTxnSafePointRequest) GetKeyspaceId() uint32 { +func (m *UpdateTxnSafePointRequest) GetKeyspaceScope() *KeyspaceScope { if m != nil { - return m.KeyspaceId + return m.KeyspaceScope } - return 0 + return nil } func (m *UpdateTxnSafePointRequest) GetTarget() uint64 { @@ -6593,7 +6641,7 @@ func (m *UpdateTxnSafePointResponse) Reset() { *m = UpdateTxnSafePointRe func (m *UpdateTxnSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateTxnSafePointResponse) ProtoMessage() {} func (*UpdateTxnSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{100} + return fileDescriptor_78b27e6f04f44c6e, []int{101} } func (m *UpdateTxnSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6637,18 +6685,18 @@ func (m *UpdateTxnSafePointResponse) GetNewTxnSafePoint() uint64 { } type SetGCBarrierRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - BarrierId string `protobuf:"bytes,3,opt,name=barrier_id,json=barrierId,proto3" json:"barrier_id,omitempty"` - BarrierTs uint64 `protobuf:"varint,4,opt,name=barrier_ts,json=barrierTs,proto3" json:"barrier_ts,omitempty"` - TtlSeconds int64 `protobuf:"varint,5,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceScope *KeyspaceScope `protobuf:"bytes,2,opt,name=keyspace_scope,json=keyspaceScope,proto3" json:"keyspace_scope,omitempty"` + BarrierId string `protobuf:"bytes,3,opt,name=barrier_id,json=barrierId,proto3" json:"barrier_id,omitempty"` + BarrierTs uint64 `protobuf:"varint,4,opt,name=barrier_ts,json=barrierTs,proto3" json:"barrier_ts,omitempty"` + TtlSeconds int64 `protobuf:"varint,5,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` } func (m *SetGCBarrierRequest) Reset() { *m = SetGCBarrierRequest{} } func (m *SetGCBarrierRequest) String() string { return proto.CompactTextString(m) } func (*SetGCBarrierRequest) ProtoMessage() {} func (*SetGCBarrierRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{101} + return fileDescriptor_78b27e6f04f44c6e, []int{102} } func (m *SetGCBarrierRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6684,11 +6732,11 @@ func (m *SetGCBarrierRequest) GetHeader() *RequestHeader { return nil } -func (m *SetGCBarrierRequest) GetKeyspaceId() uint32 { +func (m *SetGCBarrierRequest) GetKeyspaceScope() *KeyspaceScope { if m != nil { - return m.KeyspaceId + return m.KeyspaceScope } - return 0 + return nil } func (m *SetGCBarrierRequest) GetBarrierId() string { @@ -6722,7 +6770,7 @@ func (m *GCBarrierInfo) Reset() { *m = GCBarrierInfo{} } func (m *GCBarrierInfo) String() string { return proto.CompactTextString(m) } func (*GCBarrierInfo) ProtoMessage() {} func (*GCBarrierInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{102} + return fileDescriptor_78b27e6f04f44c6e, []int{103} } func (m *GCBarrierInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6781,7 +6829,7 @@ func (m *SetGCBarrierResponse) Reset() { *m = SetGCBarrierResponse{} } func (m *SetGCBarrierResponse) String() string { return proto.CompactTextString(m) } func (*SetGCBarrierResponse) ProtoMessage() {} func (*SetGCBarrierResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{103} + return fileDescriptor_78b27e6f04f44c6e, []int{104} } func (m *SetGCBarrierResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6825,16 +6873,16 @@ func (m *SetGCBarrierResponse) GetNewBarrierInfo() *GCBarrierInfo { } type DeleteGCBarrierRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` - BarrierId string `protobuf:"bytes,3,opt,name=barrier_id,json=barrierId,proto3" json:"barrier_id,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceScope *KeyspaceScope `protobuf:"bytes,2,opt,name=keyspace_scope,json=keyspaceScope,proto3" json:"keyspace_scope,omitempty"` + BarrierId string `protobuf:"bytes,3,opt,name=barrier_id,json=barrierId,proto3" json:"barrier_id,omitempty"` } func (m *DeleteGCBarrierRequest) Reset() { *m = DeleteGCBarrierRequest{} } func (m *DeleteGCBarrierRequest) String() string { return proto.CompactTextString(m) } func (*DeleteGCBarrierRequest) ProtoMessage() {} func (*DeleteGCBarrierRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{104} + return fileDescriptor_78b27e6f04f44c6e, []int{105} } func (m *DeleteGCBarrierRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6870,11 +6918,11 @@ func (m *DeleteGCBarrierRequest) GetHeader() *RequestHeader { return nil } -func (m *DeleteGCBarrierRequest) GetKeyspaceId() uint32 { +func (m *DeleteGCBarrierRequest) GetKeyspaceScope() *KeyspaceScope { if m != nil { - return m.KeyspaceId + return m.KeyspaceScope } - return 0 + return nil } func (m *DeleteGCBarrierRequest) GetBarrierId() string { @@ -6893,7 +6941,7 @@ func (m *DeleteGCBarrierResponse) Reset() { *m = DeleteGCBarrierResponse func (m *DeleteGCBarrierResponse) String() string { return proto.CompactTextString(m) } func (*DeleteGCBarrierResponse) ProtoMessage() {} func (*DeleteGCBarrierResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{105} + return fileDescriptor_78b27e6f04f44c6e, []int{106} } func (m *DeleteGCBarrierResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6937,15 +6985,15 @@ func (m *DeleteGCBarrierResponse) GetDeletedBarrierInfo() *GCBarrierInfo { } type GetGCStateRequest struct { - Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` - KeyspaceId uint32 `protobuf:"varint,2,opt,name=keyspace_id,json=keyspaceId,proto3" json:"keyspace_id,omitempty"` + Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + KeyspaceScope *KeyspaceScope `protobuf:"bytes,2,opt,name=keyspace_scope,json=keyspaceScope,proto3" json:"keyspace_scope,omitempty"` } func (m *GetGCStateRequest) Reset() { *m = GetGCStateRequest{} } func (m *GetGCStateRequest) String() string { return proto.CompactTextString(m) } func (*GetGCStateRequest) ProtoMessage() {} func (*GetGCStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{106} + return fileDescriptor_78b27e6f04f44c6e, []int{107} } func (m *GetGCStateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6981,11 +7029,11 @@ func (m *GetGCStateRequest) GetHeader() *RequestHeader { return nil } -func (m *GetGCStateRequest) GetKeyspaceId() uint32 { +func (m *GetGCStateRequest) GetKeyspaceScope() *KeyspaceScope { if m != nil { - return m.KeyspaceId + return m.KeyspaceScope } - return 0 + return nil } type GetGCStateResponse struct { @@ -6999,7 +7047,7 @@ func (m *GetGCStateResponse) Reset() { *m = GetGCStateResponse{} } func (m *GetGCStateResponse) String() string { return proto.CompactTextString(m) } func (*GetGCStateResponse) ProtoMessage() {} func (*GetGCStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{107} + return fileDescriptor_78b27e6f04f44c6e, []int{108} } func (m *GetGCStateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7069,7 +7117,7 @@ func (m *RegionStat) Reset() { *m = RegionStat{} } func (m *RegionStat) String() string { return proto.CompactTextString(m) } func (*RegionStat) ProtoMessage() {} func (*RegionStat) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{108} + return fileDescriptor_78b27e6f04f44c6e, []int{109} } func (m *RegionStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7138,7 +7186,7 @@ func (m *SyncRegionRequest) Reset() { *m = SyncRegionRequest{} } func (m *SyncRegionRequest) String() string { return proto.CompactTextString(m) } func (*SyncRegionRequest) ProtoMessage() {} func (*SyncRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{109} + return fileDescriptor_78b27e6f04f44c6e, []int{110} } func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7196,7 +7244,7 @@ func (m *PeersStats) Reset() { *m = PeersStats{} } func (m *PeersStats) String() string { return proto.CompactTextString(m) } func (*PeersStats) ProtoMessage() {} func (*PeersStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{110} + return fileDescriptor_78b27e6f04f44c6e, []int{111} } func (m *PeersStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7240,7 +7288,7 @@ func (m *Peers) Reset() { *m = Peers{} } func (m *Peers) String() string { return proto.CompactTextString(m) } func (*Peers) ProtoMessage() {} func (*Peers) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{111} + return fileDescriptor_78b27e6f04f44c6e, []int{112} } func (m *Peers) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7294,7 +7342,7 @@ func (m *SyncRegionResponse) Reset() { *m = SyncRegionResponse{} } func (m *SyncRegionResponse) String() string { return proto.CompactTextString(m) } func (*SyncRegionResponse) ProtoMessage() {} func (*SyncRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{112} + return fileDescriptor_78b27e6f04f44c6e, []int{113} } func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7388,7 +7436,7 @@ func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } func (*GetOperatorRequest) ProtoMessage() {} func (*GetOperatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{113} + return fileDescriptor_78b27e6f04f44c6e, []int{114} } func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7443,7 +7491,7 @@ func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } func (*GetOperatorResponse) ProtoMessage() {} func (*GetOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{114} + return fileDescriptor_78b27e6f04f44c6e, []int{115} } func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7518,7 +7566,7 @@ func (m *SyncMaxTSRequest) Reset() { *m = SyncMaxTSRequest{} } func (m *SyncMaxTSRequest) String() string { return proto.CompactTextString(m) } func (*SyncMaxTSRequest) ProtoMessage() {} func (*SyncMaxTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{115} + return fileDescriptor_78b27e6f04f44c6e, []int{116} } func (m *SyncMaxTSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7578,7 +7626,7 @@ func (m *SyncMaxTSResponse) Reset() { *m = SyncMaxTSResponse{} } func (m *SyncMaxTSResponse) String() string { return proto.CompactTextString(m) } func (*SyncMaxTSResponse) ProtoMessage() {} func (*SyncMaxTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{116} + return fileDescriptor_78b27e6f04f44c6e, []int{117} } func (m *SyncMaxTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7638,7 +7686,7 @@ func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitRegionsRequest) ProtoMessage() {} func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{117} + return fileDescriptor_78b27e6f04f44c6e, []int{118} } func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7698,7 +7746,7 @@ func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitRegionsResponse) ProtoMessage() {} func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{118} + return fileDescriptor_78b27e6f04f44c6e, []int{119} } func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7759,7 +7807,7 @@ func (m *SplitAndScatterRegionsRequest) Reset() { *m = SplitAndScatterRe func (m *SplitAndScatterRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsRequest) ProtoMessage() {} func (*SplitAndScatterRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{119} + return fileDescriptor_78b27e6f04f44c6e, []int{120} } func (m *SplitAndScatterRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7827,7 +7875,7 @@ func (m *SplitAndScatterRegionsResponse) Reset() { *m = SplitAndScatterR func (m *SplitAndScatterRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsResponse) ProtoMessage() {} func (*SplitAndScatterRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{120} + return fileDescriptor_78b27e6f04f44c6e, []int{121} } func (m *SplitAndScatterRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7893,7 +7941,7 @@ func (m *GetDCLocationInfoRequest) Reset() { *m = GetDCLocationInfoReque func (m *GetDCLocationInfoRequest) String() string { return proto.CompactTextString(m) } func (*GetDCLocationInfoRequest) ProtoMessage() {} func (*GetDCLocationInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{121} + return fileDescriptor_78b27e6f04f44c6e, []int{122} } func (m *GetDCLocationInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -7949,7 +7997,7 @@ func (m *GetDCLocationInfoResponse) Reset() { *m = GetDCLocationInfoResp func (m *GetDCLocationInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetDCLocationInfoResponse) ProtoMessage() {} func (*GetDCLocationInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{122} + return fileDescriptor_78b27e6f04f44c6e, []int{123} } func (m *GetDCLocationInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8017,7 +8065,7 @@ func (m *QueryStats) Reset() { *m = QueryStats{} } func (m *QueryStats) String() string { return proto.CompactTextString(m) } func (*QueryStats) ProtoMessage() {} func (*QueryStats) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{123} + return fileDescriptor_78b27e6f04f44c6e, []int{124} } func (m *QueryStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8133,7 +8181,7 @@ func (m *ReportBucketsRequest) Reset() { *m = ReportBucketsRequest{} } func (m *ReportBucketsRequest) String() string { return proto.CompactTextString(m) } func (*ReportBucketsRequest) ProtoMessage() {} func (*ReportBucketsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{124} + return fileDescriptor_78b27e6f04f44c6e, []int{125} } func (m *ReportBucketsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8191,7 +8239,7 @@ func (m *ReportBucketsResponse) Reset() { *m = ReportBucketsResponse{} } func (m *ReportBucketsResponse) String() string { return proto.CompactTextString(m) } func (*ReportBucketsResponse) ProtoMessage() {} func (*ReportBucketsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{125} + return fileDescriptor_78b27e6f04f44c6e, []int{126} } func (m *ReportBucketsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8237,7 +8285,7 @@ func (m *ReportMinResolvedTsRequest) Reset() { *m = ReportMinResolvedTsR func (m *ReportMinResolvedTsRequest) String() string { return proto.CompactTextString(m) } func (*ReportMinResolvedTsRequest) ProtoMessage() {} func (*ReportMinResolvedTsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{126} + return fileDescriptor_78b27e6f04f44c6e, []int{127} } func (m *ReportMinResolvedTsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8295,7 +8343,7 @@ func (m *ReportMinResolvedTsResponse) Reset() { *m = ReportMinResolvedTs func (m *ReportMinResolvedTsResponse) String() string { return proto.CompactTextString(m) } func (*ReportMinResolvedTsResponse) ProtoMessage() {} func (*ReportMinResolvedTsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{127} + return fileDescriptor_78b27e6f04f44c6e, []int{128} } func (m *ReportMinResolvedTsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8340,7 +8388,7 @@ func (m *SetExternalTimestampRequest) Reset() { *m = SetExternalTimestam func (m *SetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } func (*SetExternalTimestampRequest) ProtoMessage() {} func (*SetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{128} + return fileDescriptor_78b27e6f04f44c6e, []int{129} } func (m *SetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8391,7 +8439,7 @@ func (m *SetExternalTimestampResponse) Reset() { *m = SetExternalTimesta func (m *SetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } func (*SetExternalTimestampResponse) ProtoMessage() {} func (*SetExternalTimestampResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{129} + return fileDescriptor_78b27e6f04f44c6e, []int{130} } func (m *SetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8435,7 +8483,7 @@ func (m *GetExternalTimestampRequest) Reset() { *m = GetExternalTimestam func (m *GetExternalTimestampRequest) String() string { return proto.CompactTextString(m) } func (*GetExternalTimestampRequest) ProtoMessage() {} func (*GetExternalTimestampRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{130} + return fileDescriptor_78b27e6f04f44c6e, []int{131} } func (m *GetExternalTimestampRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8480,7 +8528,7 @@ func (m *GetExternalTimestampResponse) Reset() { *m = GetExternalTimesta func (m *GetExternalTimestampResponse) String() string { return proto.CompactTextString(m) } func (*GetExternalTimestampResponse) ProtoMessage() {} func (*GetExternalTimestampResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{131} + return fileDescriptor_78b27e6f04f44c6e, []int{132} } func (m *GetExternalTimestampResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8531,7 +8579,7 @@ func (m *GetMinTSRequest) Reset() { *m = GetMinTSRequest{} } func (m *GetMinTSRequest) String() string { return proto.CompactTextString(m) } func (*GetMinTSRequest) ProtoMessage() {} func (*GetMinTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{132} + return fileDescriptor_78b27e6f04f44c6e, []int{133} } func (m *GetMinTSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8576,7 +8624,7 @@ func (m *GetMinTSResponse) Reset() { *m = GetMinTSResponse{} } func (m *GetMinTSResponse) String() string { return proto.CompactTextString(m) } func (*GetMinTSResponse) ProtoMessage() {} func (*GetMinTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78b27e6f04f44c6e, []int{133} + return fileDescriptor_78b27e6f04f44c6e, []int{134} } func (m *GetMinTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -8711,6 +8759,7 @@ func init() { proto.RegisterType((*ScatterRegionResponse)(nil), "pdpb.ScatterRegionResponse") proto.RegisterType((*GetGCSafePointRequest)(nil), "pdpb.GetGCSafePointRequest") proto.RegisterType((*GetGCSafePointResponse)(nil), "pdpb.GetGCSafePointResponse") + proto.RegisterType((*KeyspaceScope)(nil), "pdpb.KeyspaceScope") proto.RegisterType((*UpdateGCSafePointRequest)(nil), "pdpb.UpdateGCSafePointRequest") proto.RegisterType((*UpdateGCSafePointResponse)(nil), "pdpb.UpdateGCSafePointResponse") proto.RegisterType((*UpdateServiceGCSafePointRequest)(nil), "pdpb.UpdateServiceGCSafePointRequest") @@ -8767,427 +8816,429 @@ func init() { func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_78b27e6f04f44c6e) } var fileDescriptor_78b27e6f04f44c6e = []byte{ - // 6711 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x7d, 0xcd, 0x73, 0x23, 0xc7, - 0x75, 0x38, 0x07, 0x00, 0x49, 0xe0, 0xe1, 0x83, 0x60, 0x2f, 0x77, 0x89, 0xc5, 0x7e, 0x6a, 0x56, - 0xd2, 0x6f, 0xb5, 0x92, 0x56, 0xd2, 0x4a, 0xf6, 0x4f, 0x56, 0x62, 0x95, 0x41, 0x12, 0x4b, 0x41, - 0xcb, 0x0f, 0x64, 0x80, 0x5d, 0x59, 0x89, 0x2b, 0x53, 0xc3, 0x99, 0x26, 0x39, 0x26, 0x30, 0x03, - 0xcd, 0x0c, 0xc8, 0x85, 0x2b, 0x07, 0x3b, 0x8e, 0x93, 0xb8, 0x62, 0x27, 0x4e, 0x39, 0x1f, 0xce, - 0xc5, 0x87, 0x24, 0x95, 0xa4, 0x2a, 0xc9, 0x25, 0x87, 0x54, 0x6e, 0xa9, 0xf2, 0x21, 0x95, 0xa3, - 0x8f, 0xae, 0x1c, 0x52, 0x2e, 0x2b, 0x97, 0xfc, 0x03, 0xb9, 0x24, 0x87, 0x54, 0x7f, 0x0d, 0x7a, - 0x3e, 0x00, 0xee, 0xce, 0x6a, 0x1d, 0x9f, 0x88, 0x79, 0xef, 0xf5, 0xeb, 0xd7, 0xaf, 0x5f, 0xbf, - 0xee, 0x7e, 0xfd, 0xba, 0x09, 0x30, 0xb2, 0x46, 0x07, 0x77, 0x47, 0x9e, 0x1b, 0xb8, 0xa8, 0x40, - 0x7e, 0x37, 0x2b, 0x43, 0x1c, 0x18, 0x02, 0xd6, 0xac, 0x62, 0xcf, 0x38, 0x0c, 0xc2, 0xcf, 0x0b, - 0xe4, 0x4b, 0xf7, 0xb1, 0x77, 0x8a, 0xbd, 0x10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39, 0xa5, 0x3a, - 0xae, 0x87, 0x17, 0x60, 0x11, 0x7b, 0x9e, 0xeb, 0x51, 0xe5, 0x96, 0xef, 0x95, 0x59, 0x6d, 0x6d, - 0x02, 0xd2, 0x18, 0x46, 0xed, 0xc2, 0xfa, 0x8e, 0x6b, 0x58, 0x69, 0xd2, 0xae, 0xc1, 0xa2, 0x63, - 0x0c, 0xb9, 0xac, 0x25, 0x8d, 0x7d, 0x9c, 0x2f, 0x91, 0x05, 0x8d, 0x24, 0x47, 0x2e, 0xd0, 0x6b, - 0xb0, 0x68, 0x07, 0x78, 0x78, 0x5e, 0xf3, 0x19, 0xd1, 0x5c, 0x03, 0xf8, 0xa1, 0x02, 0xf5, 0x78, - 0x39, 0x84, 0xa0, 0x40, 0x84, 0xe4, 0xb6, 0x44, 0x7f, 0x93, 0x56, 0x9c, 0x1a, 0x83, 0x31, 0xe6, - 0x92, 0xb2, 0x8f, 0xa9, 0x66, 0xf2, 0xb3, 0x34, 0x83, 0x6e, 0x41, 0xe1, 0xc4, 0x76, 0xac, 0x46, - 0xe1, 0xa6, 0x72, 0xbb, 0x76, 0x6f, 0x85, 0x53, 0x9c, 0x62, 0x27, 0xe8, 0x4f, 0x46, 0x58, 0xa3, - 0x48, 0xd4, 0x80, 0xe5, 0x91, 0x31, 0x19, 0xb8, 0x86, 0xd5, 0x58, 0xbc, 0xa9, 0xdc, 0xae, 0x68, - 0xe2, 0x53, 0xfd, 0xbe, 0x02, 0x55, 0xae, 0x49, 0x66, 0x21, 0xe8, 0x1a, 0x80, 0x39, 0x18, 0xfb, - 0x01, 0xf6, 0x74, 0xdb, 0xa2, 0x32, 0x16, 0xb4, 0x12, 0x87, 0x74, 0x2c, 0x74, 0x05, 0x4a, 0x3e, - 0x76, 0x2c, 0x86, 0xcd, 0x51, 0x6c, 0x91, 0x01, 0x18, 0xd2, 0x34, 0x06, 0x03, 0x86, 0xcc, 0xd3, - 0x96, 0x14, 0x19, 0xa0, 0x63, 0xa1, 0x57,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c9, 0x7e, 0x6e, - 0x40, 0x5e, 0xf0, 0x2f, 0xdf, 0xab, 0x4a, 0xc3, 0xb2, 0xb3, 0xa5, 0x11, 0x8c, 0x3a, 0x22, 0x2e, - 0x92, 0x74, 0xc6, 0x33, 0x6a, 0xf2, 0x76, 0x3c, 0x7c, 0x10, 0x57, 0x65, 0x18, 0x40, 0xf8, 0x00, - 0x1a, 0xc9, 0x1a, 0x33, 0xd9, 0xc0, 0x57, 0xa0, 0x22, 0x2f, 0x9b, 0xc8, 0x36, 0x95, 0xc5, 0x87, - 0xa6, 0x27, 0x98, 0x4c, 0xf7, 0x35, 0x0a, 0x9e, 0x9e, 0xc7, 0xde, 0x82, 0x2a, 0x76, 0x2c, 0x89, - 0x8c, 0x8d, 0xaa, 0x0a, 0x76, 0xac, 0x90, 0x48, 0x7d, 0x07, 0x40, 0xc3, 0xa6, 0xeb, 0x59, 0x5d, - 0xc3, 0xf6, 0x52, 0xb6, 0x33, 0x91, 0xd3, 0xff, 0x02, 0xdf, 0xc0, 0xa8, 0xff, 0xae, 0x40, 0x51, + // 6745 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3d, 0x4d, 0x93, 0x24, 0xc7, + 0x55, 0x53, 0xdd, 0x3d, 0x1f, 0xfd, 0xfa, 0x63, 0x7a, 0x72, 0x66, 0x77, 0x7a, 0x7b, 0x3f, 0x55, + 0x2b, 0x89, 0xd5, 0x4a, 0x5a, 0x49, 0x2b, 0xd9, 0xc8, 0x02, 0x2b, 0xdc, 0x33, 0xd3, 0x3b, 0x6a, + 0xed, 0x7c, 0x34, 0xd5, 0xbd, 0x2b, 0x0b, 0x1c, 0x54, 0xd4, 0x54, 0xe5, 0xcc, 0x94, 0xa7, 0xbb, + 0xaa, 0x55, 0x55, 0x3d, 0xb3, 0xed, 0xf0, 0x01, 0x30, 0x06, 0x1c, 0xd8, 0x60, 0xc2, 0x7c,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 0x13, 0xdb, 0xb1, 0xea, 0x85, + 0x5b, 0xca, 0x9d, 0xea, 0xfd, 0x65, 0x4e, 0x71, 0x8a, 0x9d, 0xa0, 0x37, 0x1e, 0x62, 0x8d, 0x22, + 0x51, 0x1d, 0x16, 0x87, 0xc6, 0xb8, 0xef, 0x1a, 0x56, 0x7d, 0xfe, 0x96, 0x72, 0xa7, 0xac, 0x89, + 0x4f, 0xf5, 0x7b, 0x0a, 0x54, 0xb8, 0x26, 0x99, 0x85, 0xa0, 0xeb, 0x00, 0x66, 0x7f, 0xe4, 0x07, + 0xd8, 0xd3, 0x6d, 0x8b, 0xca, 0x58, 0xd0, 0x8a, 0x1c, 0xd2, 0xb6, 0xd0, 0x55, 0x28, 0xfa, 0xd8, + 0xb1, 0x18, 0x36, 0x47, 0xb1, 0x4b, 0x0c, 0xc0, 0x90, 0xa6, 0xd1, 0xef, 0x33, 0x64, 0x9e, 0xb6, + 0x64, 0x89, 0x01, 0xda, 0x16, 0x7a, 0x09, 0x6a, 0x1c, 0x69, 0xba, 0x83, 0xa1, 0xeb, 0x60, 0x27, + 0xa0, 0x52, 0x17, 0xb5, 0x65, 0x06, 0xdf, 0x14, 0x60, 0x55, 0x83, 0x6a, 0xd4, 0x6e, 0xcf, 0x93, + 0x2a, 0x54, 0x54, 0x6e, 0xaa, 0x09, 0x3d, 0x80, 0xf9, 0x96, 0xd0, 0x58, 0x30, 0x1e, 0x32, 0xf5, + 0x4f, 0x34, 0x46, 0x50, 0x4c, 0x63, 0x04, 0x49, 0x34, 0x36, 0xc0, 0xbe, 0x6f, 0x1c, 0x89, 0x1e, + 0x11, 0x9f, 0xea, 0x10, 0xa0, 0xe7, 0xbb, 0xc2, 0xfa, 0x5e, 0x0e, 0x47, 0x1d, 0x33, 0xde, 0x55, + 0x31, 0xea, 0x24, 0x95, 0x8a, 0x41, 0x47, 0x3a, 0xd9, 0x74, 0x47, 0x4e, 0x40, 0x59, 0x56, 0x34, + 0xf6, 0x41, 0x4c, 0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0x58, 0x7b, 0x36, 0xc6, 0xd9, 0xdc, 0x38, 0x59, 0x1d, 0xf2, 0xde, + 0x9a, 0x2c, 0x1d, 0x19, 0x80, 0xae, 0xe0, 0xce, 0xed, 0xab, 0xef, 0x28, 0x80, 0xba, 0xa6, 0xe1, + 0x30, 0x31, 0xfc, 0xac, 0x32, 0xf8, 0x81, 0xe1, 0x05, 0x92, 0xc1, 0x2c, 0x51, 0x00, 0xb1, 0x97, + 0x35, 0x98, 0xef, 0xdb, 0x03, 0x3b, 0xa0, 0x95, 0xcf, 0x6b, 0xec, 0x03, 0xad, 0xc3, 0x22, 0x76, + 0x2c, 0x5a, 0xa0, 0x40, 0x0b, 0x2c, 0x60, 0xc7, 0x7a, 0x88, 0xc7, 0xea, 0x7f, 0x29, 0xb0, 0xc0, + 0x64, 0x91, 0x4c, 0x40, 0xb9, 0xa0, 0x09, 0xe4, 0x2e, 0x6c, 0x02, 0xf9, 0xa7, 0x37, 0x81, 0xc2, + 0xd3, 0x98, 0xc0, 0xfc, 0x6c, 0x13, 0x50, 0xff, 0x55, 0x81, 0xd5, 0x88, 0xda, 0x33, 0x0d, 0x92, + 0x37, 0xa0, 0xcc, 0x3b, 0x9f, 0xd4, 0x23, 0x3c, 0x43, 0x5c, 0x4f, 0x25, 0x46, 0xb3, 0x4b, 0x48, + 0xd0, 0x8b, 0xb0, 0xc8, 0x14, 0x22, 0x74, 0x10, 0x6d, 0x90, 0x40, 0x12, 0x3a, 0x56, 0x6c, 0xd2, + 0x70, 0x2e, 0x09, 0xe5, 0x29, 0x90, 0xea, 0x97, 0x60, 0xe9, 0x21, 0x1e, 0x6b, 0x64, 0xcb, 0x1a, + 0xb5, 0x03, 0x25, 0x66, 0x07, 0x52, 0x8f, 0xe7, 0x22, 0x3d, 0xfe, 0xef, 0x0a, 0xac, 0x6f, 0x90, + 0xfd, 0xfc, 0xb3, 0x9a, 0x61, 0xdc, 0xda, 0x73, 0x09, 0x6b, 0xa7, 0x26, 0xc5, 0x36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, 0x0e, 0x3e, 0x5f, 0xfd, 0x6d, 0x05, 0x90, 0x86, 0x87, 0xae, 0x17, 0x64, 0x6f, 0xb4, + 0x0a, 0x85, 0x3e, 0x3e, 0x0c, 0xa6, 0x34, 0x99, 0xe2, 0xd0, 0xf3, 0x30, 0xef, 0xd9, 0x47, 0xc7, + 0xc1, 0x94, 0x53, 0x1a, 0x86, 0x54, 0x37, 0x61, 0x35, 0x22, 0x4c, 0xa6, 0xcd, 0xd0, 0xb7, 0x15, + 0x58, 0x6b, 0xfa, 0x27, 0xac, 0xbb, 0x3f, 0xed, 0x9e, 0xa4, 0x47, 0x71, 0xd4, 0xcc, 0xd9, 0x89, + 0x99, 0x38, 0x8a, 0x23, 0xa0, 0x4d, 0x02, 0x51, 0xf7, 0x61, 0x91, 0x4a, 0xd1, 0xde, 0x4a, 0x76, + 0x99, 0x72, 0x7e, 0x97, 0xe5, 0x12, 0x5d, 0x76, 0x08, 0x97, 0x62, 0xcd, 0xcb, 0x64, 0x3f, 0x37, + 0x21, 0x2f, 0xf8, 0x97, 0xee, 0x57, 0xa4, 0x61, 0xd9, 0xde, 0xd2, 0x08, 0x46, 0x1d, 0x12, 0x17, + 0x49, 0x3a, 0xe3, 0x19, 0x35, 0x79, 0x27, 0x1e, 0x3e, 0x88, 0xab, 0x32, 0x0c, 0x20, 0xbc, 0x07, + 0xf5, 0x64, 0x8d, 0x99, 0x6c, 0xe0, 0x2b, 0x50, 0x96, 0x97, 0x4d, 0x64, 0x9b, 0xca, 0xe2, 0x43, + 0x93, 0x13, 0x4c, 0xa6, 0xfb, 0x2a, 0x05, 0x4f, 0xce, 0x63, 0x6f, 0x43, 0x05, 0x3b, 0x96, 0x44, + 0xc6, 0x46, 0x55, 0x19, 0x3b, 0x56, 0x48, 0xa4, 0xbe, 0x05, 0xa0, 0x61, 0xd3, 0xf5, 0xac, 0x8e, + 0x61, 0x7b, 0x29, 0xdb, 0x99, 0xc8, 0xe9, 0x7f, 0x81, 0x6f, 0x60,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aa, 0x00, 0xf3, 0x3c, 0x97, 0x2d, 0x28, 0x6d, 0xba, 0x4e, + 0xe0, 0xb9, 0x7d, 0x32, 0x6d, 0xa0, 0xcf, 0x01, 0x98, 0x81, 0xd7, 0xd7, 0xf1, 0x29, 0x76, 0x02, + 0x1e, 0xbf, 0xe2, 0x59, 0xbf, 0x12, 0x19, 0xcd, 0xaa, 0xd5, 0x8a, 0x84, 0x92, 0xfe, 0x54, 0xff, + 0x2e, 0x0f, 0x97, 0xe3, 0xc3, 0xe9, 0xa7, 0x27, 0x95, 0x88, 0x68, 0x43, 0xe4, 0xcc, 0x8a, 0x13, + 0x32, 0x96, 0x5c, 0x5a, 0xe5, 0x60, 0x71, 0x44, 0xf6, 0x0e, 0xac, 0x7b, 0xf8, 0xa3, 0x91, 0xed, + 0x61, 0xdd, 0xc2, 0x01, 0xb3, 0x56, 0x3e, 0x64, 0xa9, 0x13, 0xa3, 0x36, 0x71, 0x89, 0x93, 0x6c, + 0x71, 0x0a, 0x3e, 0x5a, 0x7f, 0x96, 0x2c, 0xb9, 0x98, 0x25, 0xea, 0xc3, 0xbe, 0xe1, 0xf0, 0xee, + 0x44, 0x93, 0x55, 0x90, 0x30, 0x52, 0xad, 0xec, 0xc9, 0x26, 0xfb, 0x0e, 0x54, 0x0d, 0xda, 0x79, + 0x62, 0x19, 0xc2, 0x63, 0x48, 0xdc, 0xf3, 0x44, 0x3a, 0x56, 0xab, 0x18, 0x91, 0x7e, 0x7e, 0x0b, + 0xca, 0x26, 0xeb, 0x17, 0xba, 0x16, 0xe0, 0x41, 0xa5, 0x95, 0x44, 0x8f, 0x69, 0x25, 0x73, 0xf2, + 0xa1, 0xfe, 0x43, 0x0e, 0xd6, 0xba, 0xa6, 0x11, 0x04, 0xc4, 0x49, 0x66, 0xce, 0x39, 0xba, 0x99, + 0xc8, 0x62, 0xa1, 0xea, 0x99, 0xf8, 0x8c, 0x0b, 0x26, 0x98, 0x4a, 0xe7, 0x1e, 0x85, 0x19, 0x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, 0x24, 0x4e, 0x28, 0x26, 0xd4, 0xb4, 0x20, 0xa7, 0x98, 0x50, 0x53, 0x03, 0x8b, 0xc4, + 0xc8, 0x89, 0x07, 0x4b, 0xc6, 0xe7, 0xba, 0xc2, 0x83, 0x4d, 0x0f, 0x24, 0x0a, 0x0f, 0x36, 0x23, + 0xb8, 0xc7, 0x36, 0x40, 0x69, 0x61, 0x34, 0xb1, 0x01, 0x9a, 0x11, 0xcc, 0x13, 0x1b, 0xa0, 0x59, + 0x51, 0x38, 0x56, 0xc1, 0xf6, 0x8c, 0x0a, 0xb6, 0xcf, 0xaf, 0x60, 0x7b, 0x76, 0x05, 0x6c, 0x87, + 0x45, 0x43, 0x58, 0xd2, 0x0e, 0x4b, 0x0e, 0x89, 0x49, 0x3b, 0xac, 0x48, 0xa4, 0x4b, 0x9d, 0xdb, + 0xb8, 0xff, 0xa3, 0xbf, 0x59, 0x52, 0xfe, 0xed, 0x27, 0x37, 0x94, 0x1f, 0xfe, 0xe4, 0x86, 0xf2, + 0xe3, 0x9f, 0xdc, 0x50, 0xbe, 0xfb, 0xf1, 0x8d, 0xb9, 0xef, 0x7f, 0x7c, 0x63, 0xee, 0x87, 0x1f, + 0xdf, 0x98, 0xfb, 0xd1, 0xc7, 0x37, 0xe6, 0xa0, 0xe6, 0x7a, 0x47, 0xf7, 0x02, 0xfb, 0xe4, 0xf4, + 0xde, 0xc9, 0x29, 0xfd, 0xd7, 0x07, 0x07, 0x0b, 0xf4, 0xcf, 0x9b, 0xff, 0x1f, 0x00, 0x00, 0xff, + 0xff, 0xa2, 0x8f, 0x02, 0xea, 0x88, 0x61, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -15843,6 +15894,34 @@ func (m *GetGCSafePointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *KeyspaceScope) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *KeyspaceScope) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyspaceScope) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.KeyspaceId != 0 { + i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *UpdateGCSafePointRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -15863,10 +15942,17 @@ func (m *UpdateGCSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + { + size, err := m.KeyspaceScope.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } if m.Target != 0 { i = encodeVarintPdpb(dAtA, i, uint64(m.Target)) @@ -16585,10 +16671,17 @@ func (m *UpdateTxnSafePointRequest) MarshalToSizedBuffer(dAtA []byte) (int, erro i-- dAtA[i] = 0x18 } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + { + size, err := m.KeyspaceScope.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.Header != nil { { @@ -16682,10 +16775,17 @@ func (m *SetGCBarrierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + { + size, err := m.KeyspaceScope.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.Header != nil { { @@ -16816,10 +16916,17 @@ func (m *DeleteGCBarrierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x1a } - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + { + size, err := m.KeyspaceScope.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.Header != nil { { @@ -16903,10 +17010,17 @@ func (m *GetGCStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.KeyspaceId != 0 { - i = encodeVarintPdpb(dAtA, i, uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + { + size, err := m.KeyspaceScope.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPdpb(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.Header != nil { { @@ -17561,20 +17675,20 @@ func (m *SplitRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if len(m.RegionsId) > 0 { - dAtA161 := make([]byte, len(m.RegionsId)*10) - var j160 int + dAtA166 := make([]byte, len(m.RegionsId)*10) + var j165 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA161[j160] = uint8(uint64(num)&0x7f | 0x80) + dAtA166[j165] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j160++ + j165++ } - dAtA161[j160] = uint8(num) - j160++ + dAtA166[j165] = uint8(num) + j165++ } - i -= j160 - copy(dAtA[i:], dAtA161[:j160]) - i = encodeVarintPdpb(dAtA, i, uint64(j160)) + i -= j165 + copy(dAtA[i:], dAtA166[:j165]) + i = encodeVarintPdpb(dAtA, i, uint64(j165)) i-- dAtA[i] = 0x1a } @@ -17675,20 +17789,20 @@ func (m *SplitAndScatterRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, var l int _ = l if len(m.RegionsId) > 0 { - dAtA165 := make([]byte, len(m.RegionsId)*10) - var j164 int + dAtA170 := make([]byte, len(m.RegionsId)*10) + var j169 int for _, num := range m.RegionsId { for num >= 1<<7 { - dAtA165[j164] = uint8(uint64(num)&0x7f | 0x80) + dAtA170[j169] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j164++ + j169++ } - dAtA165[j164] = uint8(num) - j164++ + dAtA170[j169] = uint8(num) + j169++ } - i -= j164 - copy(dAtA[i:], dAtA165[:j164]) - i = encodeVarintPdpb(dAtA, i, uint64(j164)) + i -= j169 + copy(dAtA[i:], dAtA170[:j169]) + i = encodeVarintPdpb(dAtA, i, uint64(j169)) i-- dAtA[i] = 0x22 } @@ -20149,6 +20263,18 @@ func (m *GetGCSafePointResponse) Size() (n int) { return n } +func (m *KeyspaceScope) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KeyspaceId != 0 { + n += 1 + sovPdpb(uint64(m.KeyspaceId)) + } + return n +} + func (m *UpdateGCSafePointRequest) Size() (n int) { if m == nil { return 0 @@ -20162,8 +20288,9 @@ func (m *UpdateGCSafePointRequest) Size() (n int) { if m.Target != 0 { n += 1 + sovPdpb(uint64(m.Target)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + l = m.KeyspaceScope.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } @@ -20462,8 +20589,9 @@ func (m *UpdateTxnSafePointRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + l = m.KeyspaceScope.Size() + n += 1 + l + sovPdpb(uint64(l)) } if m.Target != 0 { n += 1 + sovPdpb(uint64(m.Target)) @@ -20497,8 +20625,9 @@ func (m *SetGCBarrierRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + l = m.KeyspaceScope.Size() + n += 1 + l + sovPdpb(uint64(l)) } l = len(m.BarrierId) if l > 0 { @@ -20559,8 +20688,9 @@ func (m *DeleteGCBarrierRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + l = m.KeyspaceScope.Size() + n += 1 + l + sovPdpb(uint64(l)) } l = len(m.BarrierId) if l > 0 { @@ -20596,8 +20726,9 @@ func (m *GetGCStateRequest) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.KeyspaceId != 0 { - n += 1 + sovPdpb(uint64(m.KeyspaceId)) + if m.KeyspaceScope != nil { + l = m.KeyspaceScope.Size() + n += 1 + l + sovPdpb(uint64(l)) } return n } @@ -33709,6 +33840,75 @@ func (m *GetGCSafePointResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *KeyspaceScope) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: KeyspaceScope: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KeyspaceScope: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + } + m.KeyspaceId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPdpb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeyspaceId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipPdpb(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPdpb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -33794,10 +33994,10 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } } case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceScope", wireType) } - m.KeyspaceId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -33807,11 +34007,28 @@ func (m *UpdateGCSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KeyspaceScope == nil { + m.KeyspaceScope = &KeyspaceScope{} + } + if err := m.KeyspaceScope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) @@ -35758,10 +35975,10 @@ func (m *UpdateTxnSafePointRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceScope", wireType) } - m.KeyspaceId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -35771,11 +35988,28 @@ func (m *UpdateTxnSafePointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KeyspaceScope == nil { + m.KeyspaceScope = &KeyspaceScope{} + } + if err := m.KeyspaceScope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) @@ -35987,10 +36221,10 @@ func (m *SetGCBarrierRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceScope", wireType) } - m.KeyspaceId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -36000,11 +36234,28 @@ func (m *SetGCBarrierRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KeyspaceScope == nil { + m.KeyspaceScope = &KeyspaceScope{} + } + if err := m.KeyspaceScope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BarrierId", wireType) @@ -36404,10 +36655,10 @@ func (m *DeleteGCBarrierRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceScope", wireType) } - m.KeyspaceId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -36417,11 +36668,28 @@ func (m *DeleteGCBarrierRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KeyspaceScope == nil { + m.KeyspaceScope = &KeyspaceScope{} + } + if err := m.KeyspaceScope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BarrierId", wireType) @@ -36663,10 +36931,10 @@ func (m *GetGCStateRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyspaceScope", wireType) } - m.KeyspaceId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowPdpb @@ -36676,11 +36944,28 @@ func (m *GetGCStateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyspaceId |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthPdpb + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPdpb + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KeyspaceScope == nil { + m.KeyspaceScope = &KeyspaceScope{} + } + if err := m.KeyspaceScope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPdpb(dAtA[iNdEx:]) diff --git a/proto/pdpb.proto b/proto/pdpb.proto index 5dc3a2097..c2171be3b 100644 --- a/proto/pdpb.proto +++ b/proto/pdpb.proto @@ -873,14 +873,25 @@ message GetGCSafePointResponse { uint64 safe_point = 2; } + +// A wrapper over keyspace_id. +// When a field is not specified in proto3, its value will be regarded as 0; however, keyspace_id = 0 is regarded as a valid keyspace (which +// is the "DEFAULT" keyspace). To distinguish unspecified keyspace (NullKeyspace, 0xffffffff) and the default keyspace in some APIs as well +// as preventing potential misuse, we wrap the keyspace_id into a message type which is nullable. +message KeyspaceScope { + uint32 keyspace_id = 1; +} + message UpdateGCSafePointRequest { RequestHeader header = 1; uint64 target = 2; + + // The UpdateGCSafePoint API will be in the set of both legacy API and new API, but its behavior will be the same so we don't need to // avoid the collision on the method name. When it's used as a member of the new API set, the keyspace_id field can be used to specify // a keyspace. - uint32 keyspace_id = 3; + KeyspaceScope keyspace_scope = 3; } message UpdateGCSafePointResponse { @@ -989,7 +1000,7 @@ message GetAllGCSafePointV2Response { message UpdateTxnSafePointRequest { RequestHeader header = 1; - uint32 keyspace_id = 2; + KeyspaceScope keyspace_scope = 2; uint64 target = 3; } @@ -1002,7 +1013,7 @@ message UpdateTxnSafePointResponse { message SetGCBarrierRequest { RequestHeader header = 1; - uint32 keyspace_id = 2; + KeyspaceScope keyspace_scope = 2; string barrier_id = 3; uint64 barrier_ts = 4; @@ -1024,7 +1035,7 @@ message SetGCBarrierResponse { message DeleteGCBarrierRequest { RequestHeader header = 1; - uint32 keyspace_id = 2; + KeyspaceScope keyspace_scope = 2; string barrier_id = 3; } @@ -1038,12 +1049,11 @@ message DeleteGCBarrierResponse { message GetGCStateRequest { RequestHeader header = 1; - uint32 keyspace_id = 2; + KeyspaceScope keyspace_scope = 2; } message GetGCStateResponse { ResponseHeader header = 1; - uint64 txn_safe_point = 2; uint64 gc_safe_point = 3; diff --git a/scripts/proto.lock b/scripts/proto.lock index 48079fec3..b1f4e8720 100644 --- a/scripts/proto.lock +++ b/scripts/proto.lock @@ -16068,6 +16068,16 @@ } ] }, + { + "name": "KeyspaceScope", + "fields": [ + { + "id": 1, + "name": "keyspace_id", + "type": "uint32" + } + ] + }, { "name": "UpdateGCSafePointRequest", "fields": [ @@ -16083,8 +16093,8 @@ }, { "id": 3, - "name": "keyspace_id", - "type": "uint32" + "name": "keyspace_scope", + "type": "KeyspaceScope" } ] }, @@ -16385,8 +16395,8 @@ }, { "id": 2, - "name": "keyspace_id", - "type": "uint32" + "name": "keyspace_scope", + "type": "KeyspaceScope" }, { "id": 3, @@ -16420,8 +16430,8 @@ }, { "id": 2, - "name": "keyspace_id", - "type": "uint32" + "name": "keyspace_scope", + "type": "KeyspaceScope" }, { "id": 3, @@ -16485,8 +16495,8 @@ }, { "id": 2, - "name": "keyspace_id", - "type": "uint32" + "name": "keyspace_scope", + "type": "KeyspaceScope" }, { "id": 3, @@ -16520,8 +16530,8 @@ }, { "id": 2, - "name": "keyspace_id", - "type": "uint32" + "name": "keyspace_scope", + "type": "KeyspaceScope" } ] },